How do I develop a servlet for different versions of the JDK?

This is my first post here so I hope this is the appropriate forum...
I am developing a servlet on my local machine set up with :-
Windows XP Pro SP2
J2SE 1.50
Tomcat 5.5.4
However, one of the hosts where I need to use the servlet has :-
J2EE 1.4 SDK
Tomcat 4.1.29
I have installed JDK 1.4.2_06 but need to access the servlet api jar (servlet-api.jar) to compile against otherwise I get errors such as:
FirstServlet.java:4: package javax.servlet does not exist
import javax.servlet.*;
The servlet api jar I use when compiling with J2SE 1.50 is in "C:\Tomcat\Tomcat 5.5\common\lib\servlet-api.jar".
My question is where can I obtain a servlet api jar to compile against for use under J2EE 1.4 SDK / Tomcat 4.1.29 - i.e. do I need to install the relevant version of Tomcat or is the jar available seperately?
Any help much appreciated.

"My question is where can I obtain a servlet api jar to compile against for use under J2EE 1.4 SDK / Tomcat 4.1.29 - i.e. do I need to install the relevant version of Tomcat or is the jar available seperately?"
you can download it seperately from java servlets website
http://java.sun.com/products/servlet/download.html
you should download the tomcat version you are hosting your code
with to ensure full compatability
i think it is called servlet.jar not servlet-api.jar in older tomcats

Similar Messages

  • How can I distribute an application using Reprot generation Toolkit for MS Office for different versions of MS Office?

    I want to create an application which uses the Report Generation Toolkit for Microsoft Office. The office version of the target machine depends on what my customer has installed.
    From several discussions I have seen that the installer detects which version I have on my development machine. I'm not able to hold three or four machines with different versions (97,2000,2002,XP).
    I decided to do the following software architecture:
    I create a LLB MakeReport.llb with a VI called MakeReport.vi. With VI server I will start MakeReport.vi in MakeReport.llb. Over a named queue I will send a command from my application to MakeReport.vi. Then the report will be
    printed.
    I will create this LLB by saving MakeReport.vi with File>>Save with options...>>Application distribution. All neccessary VIs will be in the LLB.
    I will hold different directories for each version. I can create different version of the LLB. During installation of my application the LLB for the right version will be copied from the CD to the application folder.
    I know I will be restricted in testing my report in only one version and hoping it will be good in the other versions.
    I think that the difference lays only in the word and excel related llbs.
    1. Will my software architecture work or is it obviously wrong?
    2. How will I get all versions from the toolkit CD?
    3. Which is the registry key I must read to get the right version (a minor question, if somebody knows I do not need to search for myself).
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

    Lookout saves the files in .csv form which can be opened in Excel. I did make some progress by using the "append table to report" vi which allowed me to put values into an array and then those values were entered into my template on my report vi.
    Where I am stuck now is I want to be able to put values into my template from a .csv file, not from an array I have to manually put numbers in.
    Once those values are in my template I want to pull summed values from the template and place them into a final excel file for printing.
    I have attached examples of the files I am working with to help you better understand what I am trying to do.
    I hope that makes sense.
    Jason Phillips
    Attachments:
    HourlyTotalsTemplate.xls ‏120 KB
    eb_rain_gauge_ss.csv ‏23 KB
    EastBankHourlyRainReport.xls ‏28 KB

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

  • How can i develope a report for getting purchase requisition details

    how can i develope a report for getting purchase requisition details like mrp controller release date unit of measure

    Hi,
      Go to Tcode ME53(Purchase requisition display). Give any preq number and click the item overview button..
    in the next page click select one item and press item details button(or F2 button)..In the next page all your requiresd fields will be there.. put cursor in reqd field and press f1.. in the pop up box press techical details(hammer button) to get the field name as well as the transparent table.. Use those fields and table in ur program..
    hope it helps
    Award points if it helps

  • Can you run multiple APEX listeners for different instances on the same server

    Please confirm that we can run multiple APEX listeners for different instances on the same server?  Is it an xml setup configuration or do we need to do more??
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

    Yes.. Just exactly what I was looking for...
    Thanks Jari!!
    Thank You,
    Tony Miller
    SmartDog Services
    Austin, TX

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

  • Different zoom levels for different clips in the same project?

    Hi
    I am making a movie with videos from two different cameras. As a result some of the clips are cut down in size to a small portion of the screen. This can be solved if it is possible to use different zoom levels for different clips in the same project. I have not been able to do this. Is it possible?
    kind regards
    Soren

    You can scale the small clips up to the same size of the larger one... but you will get a quality loss.
    Using Motion or Scale to Frame Size commands
    Better to scale the large ones down to a Sequence that matches the smaller clip dimensions.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How would you setup users to have different versions of Flash Player?

    I am looking to test some setups with different versions of Flash, but wanted to know how to setup one user to have Flash Player Version 6, one with version 7, 8, etc.
    How would I go about doing this?
    Thanks,
    Russ

    Create a new folder named Internet Plug-Ins inside the Library folder of the home folder of some of your user accounts, and move the different versions of the plugin into this folder, one per user account. The copy of the Flash plugin in the main Library folder is accessed when an account doesn't have a copy in its home folder.
    (13732)

  • How long is it gonny take for me to download the latest update for my iphone5

    how long is it gonny take for me to download the latest update for my iphone5?

    iPhone 5 running iOS 6. Am I wrong?

  • How to install LenovoEMC Storage Manager for Linux: Version 1.4.4.14439

    An Small step by step how to install this app. I this first example it was installed on Red Hat 6 Linux
    How to install LenovoEMC Storage Manager for Linux: Version 1.4.4.14439.
    1 - Download it from https://lenovo-na-en.custhelp.com/app/cust_alp/p/1031,1150
    2 - Change File permissions ( chmod +x setup-1.4.4.14439.bin)  
    3 - Now you can install so execute this sintaxis : ./setup-1.4.4.14439.bin
    4 - When app installation finishes, you must do it with this file into folder installation (chmod +x LenovoEMCStorageManager)
    5 - Then to open the app execute it: ./LenovoEMCStorageManager
    Video Tutorial
    How to install LenovoEMC Storage Manager for Linux: Version 1.4.4.14439
    In This second example I installed same version on Ubuntu 13.10. Look at the end of messages of thread and you will see this steps
    Install Storage Manager setup-1.4.4.14439.bin in ubuntu.
    Attachments:
    lenovoemcstoragemanager.jpg ‏27 KB

    Hello everyone ,
    I have a lenovo px4-300d, I'm on Ubuntu 13.10 64bits with Gnome 3 as GUI and I'm trying to install  the LenovoEMC storage Manager but it failed  :
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    Launching installer...
    Graphical installers are not supported by the VM. The console mode will be used instead...
    Preparing CONSOLE Mode Installation...
    ===============================================================================
    Choose Locale...
        1- Deutsch
       ->2- English
        3- Español
        4- Français
        5- Italiano
        6- Nederlands
        7- Português  (Brasil)
        8- Svenska
    CHOOSE LOCALE BY NUMBER: 2
    =======================================================
    Installer User Interface Mode Not Supported
    The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The valid UI modes identifiers are GUI, Console, and Silent.
    =======================================================
    Is it still aproblem with the 64 bits architecture ?
    Have you find any solutions ? Thank you very much

  • Updated pages on 11/25 but it in application it is saying there is an new version for $19.99.  Is this a different version or the same?

    updated pages on 11/25 but it in application it is saying there is an new version for $19.99.  Is this a different version or the same?

    Launch Pages.
    From the Pages menu bar click Pages > About Pages
    The latest version available is 5.0.1
    If it's 5.0.1, your currently installed copy of Pages is up to date.

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • How do I get serial numbers for computers bought in the last seven years? They have been stolen but I am not in the country. Can I do it remotely?

    how do I get serial numbers for computers bought in the last seven years? They have been stolen but I am not in the country. Can I do it remotely?

    Check here first, and use your AppleID:
    https://supportprofile.apple.com/

  • Versioned deployments: how to deploy different version of the same app ?

    I 'd like to deploy on a server (single instance) different versions of the same web application, say:
    webapp1.war
    webapp2.war
    webapp3.war
    The wars have the same ContextRoot.
    It is possible to version them with an attribute in MANIFEST.MF, but is it possible to have the N applications ACTIVE and running ? I'd like that one IP will be served from webapp1, another IP from webapp2, another IP from webapp3, etc.

    It may your 'requirement' but I have serious doubts that the app review team will approve it. Save yourself the waste of time and follow my original suggestion of one app. That's the only correct 'method' (w/IAP of course) that will have a chance of success.
    See the iOS Human Interface Guidelines and the App Review Guidelines before you go any further. In the case where you need 'official' guidance, consider using support event w/DTS

Maybe you are looking for