Can I use data from Servlet in my static html page?

First of all, I can NOT use jsp because of web server's restriction.
I have a servlet which will give me some image links in html file via doGET and doPOST method. I also need the sizes of the images and compress the images if too large.
My question is how I can pass the image sizes to the html page and how I can use them in html files.
Please advise me some solutions to this problem.

Yeah, you have 2 choices:
1) Change your web server to one that allows JSP.
2) Re-build the JSP system from scratch so that the one you make will work in your server. This would involve changing your so called static HTML to have markings (like <% %> tags) where you should insert the values you need to insert. You would then have a servlet that reads the 'static' HTML, parses our the insertion tags, and inserts the values. It would then stream the results back to the user.
Of course, your HTML is not really static, it is dynamic because the values you are inserting are capable of changing.
If you don't want to upgrade the server to one that supports JSPs (if yours really doesn't), the have fun making your own system.

Similar Messages

  • Can I use dates from dual to fetch all he rows between that dates?

    I am trying to get the records that have expirations in the month of May
    What is the correct syntax to use the dates from dual to get all the rows that fall between two dates.
    I am stuck with this query..
    can any one look into it please..
    insert into RENEWALS_ALL_MAY
    select
    from
    ORIGINAL
    where
    (expiration_date between to_date(trunc(add_months (sysdate,3),'mm') from dual) and to_date(last_day(add_months (sysdate,3)) from dual))

    SQL Reference
    Supplied PL/SQL Packages and Types Reference
    For Oracle 9.2
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#80856
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/toc.htm
    For other versions see
    http://tahiti.oracle.com/

  • Can I have data from Numbers automated to embed to Pages template?

    I am creating both a database and a document resource for a large archival project. I would like to know if there is a means to enter the data into a spread sheet in Numbers and them import each of the cells into a separate window in Pages.
    For example, I would have cells for contact info. Could I automate a Pages template to import that data into a window?
    The Pages documents would be a newsletter design to present the data of each person as a visually accessible version of the data.
    Some of the data would be:
    Current contact info.
    years at a location
    yes/no answers to some basic questions.
    etc.
    Other items in the Pages document would be imported directly - ie photos, etc.

    That is called a merge.
    Pages can merge data from both Numbers' tables and from AddressBook.
    Of the two AddressBook is usually less difficult, but obviously has less ability to create custom fields.
    You create the merge fields inside Pages with Menu > Insert > Merge Field > select which data and then use the Link Inspector to tell it which Application, document and what fields to merge from.
    You can not merge images and Pages merges will not do multiple merges per page eg if you have a set of data for Tom Jones and another for John Smith Pages will generate separate pages for each.
    You can have multiple references to Tom Jones on the same page, but not to both Tom Jones and John Smith. There are ways around this but it is a bit clumsy.
    Peter

  • Pass data from servlet to jsp using sendRedirect

    Hi,
    I am passing data from servlet to jsp using forward method of request dispatcher but as it doesn't change the url it is creating problems. When ever user refreshes the screen(browser refresh) it's re-loading both servlet and jsp, which i don't want to happen. I want only the jsp to be reloaded.
    Can I pass data from servlet to jsp using sendRedirect in this case. I also want to pass some values from servlet to jsp but without using query string. I want to set some attributes and send to jsp just like we do for forward method of request dispatcher.
    Is there any way i can send data using attributes(without using query string) using sendRedirect? Please let me know

    sendRedirect is meant as a true redirect. meaning
    you can use it to redirect to urls not in your
    context....with forward you couldn't pass information
    to jsps/servlets outside your own context.Actually, you can:
    getServletContext().getContext("/other").getRequestDispatcher("/path/to/servlet").forward(request, response)I think the issue here is that the OP would like to have RequestDispatcher.forward() also update the address in the client's browser. That's not possible, AFAIK. By the time the request is forwarded, the browser has already determined the URL of the servlet, and the only I know of way to have the browser change the URL to the forwarded Servlet/JSP is to send a Location: header (i.e. sendRedirect()). Remember that server-side dispatching is transparent to the client. Maybe there's some tricky stuff you can do with JavaScript to change the address in the address bar without reloading the page?
    Brian

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. years each month.

    I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.

    Hi Tony,
    Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
    Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
    Regards,
    Barry

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    iPhone 4s 16GB running iOS 7.1.2. Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    Hi ,
    Welcome to the Apple Support Communities!
    I understand that you cannot use your Wi-Fi after the latest update to your iPhone 4s. I know you have already done some great troubleshooting by restoring with iTunes but the Wi-Fi becomes unavailable very quickly after you set it up. Go ahead and set up the iPhone so you can get into the Setting and then follow the steps provided in the attached article.
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
         Resolution
    Follow these steps to resolve the issue:
    Restart your iOS device.
    Make sure that airplane mode is off by tapping Settings > Airplane Mode.
    Reset the network settings by tapping Settings > General > Reset > Reset Network Settings.
    This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    Make sure that your device is using the latest software. To do so, connect your device to your computer and check for updates in iTunes.
    If you complete all of these steps and still are not able to access the Wi-Fi, it may be necessary to follow the link at the bottom of the page and contact Apple Support.
    Have a great day,
    -Joe

  • How to get useful data from request?

    Hello.
    I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
    Thanks.

    If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
    The only thing you can try to rely on are ;
    - the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
    - the User-Agent header : from this, you can guess the OS and the browser used
    - the Referer header : usefull to get where your user comes from (where they found a link to your site)
    - the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
    Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't)

  • Can we get data from business views  in CR 2008/XI?

    Hi All,
    Can we get data from business views  in CR 2008/XI?
    If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
    Thank you,
    Krishna Pingali

    Hi Krishna,
    Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
    You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
    It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
    Contact our Sales department for pricing and availability.
    Thank you
    Don

  • How can I modify data from a Transparent Table without ABAP code.

    Hi,All
    How can I modify data from a Transparent Table (like TCURR),  and important thing is I want do all that with no ABAP code here. It is like that we always do that in a Oracle database use TOAD or PLSQL third party tools, with no script code here.
    I had fond that there is a way can do that:
    1, type 'se11',and Display Database table 'TCURR', click Contents, then click Execute to display all data
    2, type '/h' and let debugging on
    3, select one of this data then click 'Display',enter in debugging system.
    4, then make a breakpoint in the code. But... display a dialog let I type a 'ABAP Cmnds', I want to know what can be type in for that?
    and, My system is ECC6.
    thank you all
    Edited by: xuehui li on Aug 20, 2008 6:30 PM

    Hello,
    Your approach (with Vijay's suggestion) MAY work.  However, depending on how tight security is at the company that you are working at you may or may not be able to acutaly change the value of the SHOW field to EDIT.  This will be especially true if you are working in a Production environment.  Vijay's other comment is true as well.  This is not a recommended approach to change data (especially data with a financial impact like TCURR) in a production environment.  The auditors will not be impressed.
    Explore the option of a maintenace view or look at tcode TBDM to upload a file which includes daily rates from providers like Reuters or try tcode s_bce_68000174 which is a maintenance view on TCURR.
    Regards
    Greg Kern

  • How can i store data from a pc to TC

    how can I backup data from a PC to TC

    Get a suitable backup software..
    Windows backup is of course useless. But you should already know that. It will not work on any version less than pro anyway.. due to MS deciding people with home versions should never use networks. ???
    That is why there is one million and one third party backup software that do work with network drives. Look up reviews of what works well. for the price you want to pay and get it.. Drive Image was a popular one. I must have a copy somewhere I bought .. then changed to Mac..
    There are plenty of free ones.. I do use macrium reflect.. does disk image only unless you pay the license.. but works super well.. particular for restore.. which people kind of forget.. the value of backup is how well does it restore.
    Use ethernet if possible.
    Note that mixing TM and data on the TC is not necessarily a great idea if you are also running Macs.

  • How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    How can I migrate data from an old MBA to a new one without having access to the screen of the old one? The screen of the old MBA is damaged !

    If your "older" MBA has a Thunderbolt port then it isn't that old. See Target Disk Mode about how it's used. Note that without a monitor you won't be able to tell from the screen when it has fully started, and if it succeeded in starting in TDM. If it did, then the hard drive should appear on the Desktop of your new computer. You can then access it to transfer your files. You can even use Migration Assistant or any backup utility to transfer data. Just don't try to transfer system files.

  • How can I restore data from iCloud

    My iPad locked up last night and I had to restore to factory settings to make it operable.  During the process it asked me if I wanted to restore my data and it told me that the latest and only backup was from a few minutes before that time which was AFTER all my stuff got wiped out.  I was able to resync some apps and all my music from iTunes, but I lost a ton of pictures and other files that I thought were SUPPOSED to be safe on iCloud.
    So I start reading about restoring data from iCloud and apparently Apple only does this on a NEW device.  What a load of crap!
    Does anyone have any idea how I can get my data from the stupid iCloud to my stupid iPad?

    The "Apple data" such as contacts, calendars, notes, etc. are not backed up to an iCloud backup, since they reside in the special databases on iCloud.  If you delete some data from a device (e.g. one contact), it is deleted from that device, from iCloud's database and thus from all other devices connected to that iCloud account.
    Hence performing a restore from an iCloud backup will not help.
    However, if that data was ever on a computer (assuming the computer also synced data from iCloud) and if you consistently perform backups using something like Time Machine on a mac or any number of backup programs on Windows, then you should be able to restore the data from that backup.  For example, on a mac, invoke the contacts app then choose Enter Time Machine from the Time Machine icon on the main toolbar.  That will allow you to go back in time and choose an older backup to restore.
    If you have an iTunes backup on the computer, I'm not really sure that also includes the Apple data stored on iCloud.  It should have the local data.  For example, Contacts can be under "iCloud" or "On My Mac" (or whatever computer you use).  An iTunes restore should restore the data on your computer.
    The whole idea regarding an iCloud backup is that if your device ever fails and must be replaced or reset, the backup will restore all the data as it was at the time of the last backup.   The restore will return all the device's settings such as iCloud login, on/off states of data to connect to (like contacts).  Once that's done, the device will connect to iCloud and download the current data.
    IMPORTANT...
    Photos should be regularly synced to a computer (like you store photos from a digital camera) using either USB via iTunes (on a mac use iPhoto or Aperture to move them to an album) or using photo stream.  If you have been doing that, then you can sync those photos back to your device.
    If you haven't been saving photos except relying on iCloud to store them in a backup, then that is risky, as many users have discovered.  I'm afraid I have no advice in this case - there is no "cure".

  • How can I extract data from embedded collection??????

    I have 4 classes (class1, class2, class3, class4). Each of them contains properties, methods and a set (HashSet). The set declaration code is: private Set set1;
    The initialization occurs in the appropriate method (however I did declare and initialize as private Set set1= new HashSet(); without success). Each Set is declared and initialize in their own class. The insert and update method works perfectly well.
    When I load class1 object, I can see at runtime in the debug feature all properties data as well as all set elements (set1, set2, set3, and set4). I can extract the data from all properties belongs to the class1 as well as the set1 element. However I cannot extract the data from the set2, set 3 and set4. By writing the following �String s = class1.set1(). Property name;� and I will get the information. The problem that I have is that I cannot write the following �String s= class1.set1().set2().property name;� since set2 cannot be seen. What should I do to get the info from the other set collection???? The loading method provide an object that contains everything. This object is equal as class1 and the set are embedded one inside the other.
    Used hibernate and Struts.
    Could someone help???? Many thanks

    Are we talking about Java source code here or some weird expression language?
    Can you post a minimal, example Java program that demonstrates your problem?

Maybe you are looking for

  • HT203167 my old pc died, how do i get all my music i paid for back on my new pc??????

    my old pc died, mother board and  hard drive both fried, how do i get 15 years of music back to my new pd???????????????????????????????????

  • Macbook to HD

    I am probably getting a new HDTV,(so HDMI input?) and I would like to hook my Macbook up to it for video mirroring. What cable(s) do I need?

  • Ecess and SEcess value not displaying in PO

    Dear Experts,                          in PO the BED is displaying correctly but Ecess(JEC1) and SEcess(JSEP) value its not displaying in PO  ,were could be the problem? regars rj

  • KM Content Lost in EP KM Repositories

    Hi Experts, We have upgraded my EP systems from SP13 to SP18 recently.  After upgration we lost my KM Content stored in File repositories,  I don't know how to retrive it back and why it lost ? Can anyone help me on this issue ? Regards, Suresh

  • Publishing Feature for Site Collection

    Hi.. I am having 5 different Site Collections in SharePoint Site and from 1st Site Collection we are redirecting to other using Top Link bar, but when we enable Publishing Feature for Different Site Collections the Top Link bar changed..i want to hav