What are System.in/out/err for servlets?

While porting some command-line code to a servlet I ran into a problem where the servlet would hang trying to read from System.in. I will obviously need to fix that, but it got me wondering, what are System.in, System.out, and System.err for servlets? Do any of them have a use?
Thanks
Michael

System.in doesn't have a use because it doesn't make sense for a servlet to read from it. The other two are still usable, and generally the application server maps them to a log file somewhere.

Similar Messages

  • What are the required jar files for servlets compilation?

    hello all,
    which jar files are required to compile a servlet class.I am using Tomcat 5.5 version and my deployment folder is in tomcat's webapps folder.
    already i have servlets-api,jar,but i got several errors while i compile my servlet program.
    do i need to set path and classpath also? if yes, tell me how?
    can any one help me.
    errors are-
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\sample\WEB-INF\classes>javac *.java
    GetData.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    GetData.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    GetData.java:6: cannot find symbol
    symbol: class HttpServlet
    public class GetData extends HttpServlet {
    ^
    GetData.java:8: cannot find symbol
    symbol : class HttpServletRequest
    location: class GetData
    public void doGet(HttpServletRequest request, HttpServletResponse response) thr
    ows ServletException, IOException{
    ^
    GetData.java:8: cannot find symbol
    symbol : class HttpServletResponse
    location: class GetData
    public void doGet(HttpServletRequest request, HttpServletResponse response) thr
    ows ServletException, IOException{
    ^
    GetData.java:8: cannot find symbol
    symbol : class ServletException
    location: class GetData
    public void doGet(HttpServletRequest request, HttpServletResponse response) thr
    ows ServletException, IOException{
    ^
    6 errors
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\sample\WEB-INF\classes>

    I think you did not set the path and the classpath...
    set the path to jdk bin folder
    set PATH=c:\program files\java\jdk1.x\bin;
    also set classpath to servlets-api.jar
    set CLASSPATH=C:\program files\ ..... \servlets-api.jar

  • What are the naming conventions used for aggregates created from Query?

    What are the naming conventions used for aggregates created from Query?

    Hi Reddy,
    As you know aggregates are baby cubes right.
    Aggregate names by default system has given as 6 digit number like 100831 but write the description by yourself.
    Here you have to remember fact table is created with the name
    like for ex: /BIC/F100831.
    while creating aggregates you can observe all options carefully till complete the creation process then after I am sure about
    your can get idea .
    If problem still persists with you let me know the same until
    get out of that.
    else assign points if this is sufficient.
    Thanks,
    Ramki

  • What are Apple doing to compensate for the damage caused by the iPhone 4 bumper?

    I have noticed damage caused by the bumper.
    It is NOT foreign object but caused by the hard plastic on the inside of the bumper
    (plese do not come out with rubbish like steel is harder than plastic) I am not stupid and I know that the damage matches the pattern of the bumper skeleton.
    What I want to know is when are Apple going to deal with this and replace my phone?
    I dare not go to the so called Genius bar in Milton Keynes as they have adopted a Dixons style "fob off" attitude and I will become rather angry with them.

    Re: What are Apple doing to compensate for the damage caused by the iPhone 4 bumper? 
    15-Jun-2011 15:15 (in response to sfrommilton keynes)
    o Steel is harder than plastic, so the bumper has not caused the damage.
      - You call it rubbish
      - The world calls it physics
    You are totally wrong.  Please go back to School.
    o You can deny physics
      - but that will not change reality.
    You can go to School but that wont change reality.
    o Your description of your Genius bar is incomprehensible
      - I recommend you go to the Genius bar leaving the chip on your shoulder at home and tactfully explain what you think is your issue.
    I recomend you find a day job ans stop TROLLING peoples threads.
      - I've never had them fail me or be the least bit confrontational.
      - But if you act like a jerk then I couldn't predict what would happen
    Yeah because you were there.  Are you having some kind of relationship with the company?  I think you sleep with an Apple under your pillow.
    Finally I am a consumer who has paid for a product that is not living up to expectations.  The plastic skelton is hard and abrasive (I know what that means as I went to School) Abrasion's are marking the product. 
    This is not the only time this has been reported and as such I have no issue with particles entering the bumber.  This has happened from the start (when I used Apples stupid bumber case)
    Please don't patronise or TROLL others threads.
    <Edited by Host>

  • What are the master data tables for 'Plant'?

    Hi friends,
    What are the master data tables for 'Plant' that contain below data?:
    PLANT
    NAME1
    NAME2
    LANGUAGE
    HOUSE_NUM_STREET
    PO_BOX
    POSTAL_CODE
    CITY
    COUNTRY_KEY
    REGION
    COUNTRY_CODE
    CITY_CODE
    TIME_ZONE
    TAX_JURISDICTION
    FACTORY_CALENDAR
    Thanks a lot!

    Hi,
    Plz try out following tables for your requirement.
    TOO1W
    ADRC
    J_1IMOCOMP
    T001W :  werks TYPE t001w-werks, "PLANT
            name1 TYPE t001w-name1, "PLANT DESCRIPTION
            adrnr TYPE t001w-adrnr, "PLANT ADDRESS NUMBER
    ADRC:  addrnumber TYPE adrc-addrnumber,  "ADDRESS NUMBER
             str_suppl1 TYPE adrc-str_suppl1,  "STREET2
             str_suppl2  TYPE adrc-str_suppl2, "STREET3
             street TYPE adrc-street,          "STREET
             city1 TYPE adrc-city1,            "CITY
             post_code1 TYPE adrc-post_code1,  "CITY POSTAL CODE
             post_code2 TYPE adrc-post_code2,  "PO Box postal code
             tel_number TYPE adrc-tel_number,  "TELEPHONE NUMBER
             fax_number TYPE adrc-fax_number,  "FAX NUMBER
             str_suppl3 TYPE adrc-str_suppl3,  "STREET4
             location TYPE adrc-location,      "STREET5
             city2 TYPE adrc-city2,  
    For Tax Details :
    J_1IMOCOMP :   werks TYPE j_1imocomp-werks,
                              j_1icstno TYPE j_1imocomp-j_1icstno,
                              j_1ilstno TYPE j_1imocomp-j_1ilstno,
    Hope this will help.
    Regards,
    Archana

  • What are the video card requirements for running a 23" cinema display

    What are the video card requirements for running a 22" cinema display(clear acrylic case) w/ a PC? My motherbaord is AGP. Thanks to anyone who can help.
    Intel P4 3.0ghz   Windows XP  

    Hi Lionel,
    As a general rule of thumb, the ATI Rage 128 Pro will not support a 20" LCD. That being said, there are reports of it doing just that (possibly the edition that went into the cube).
    I'm not that familiar with the ins and outs of the Cube, so I can't give you authoritative information on it.
    A good place to start looking for answers is:
    http://cubeowner.com/kbase_2/
    Cheers!
    Karl

  • What are the different transaction codes for PGI?

    1. What are the different transaction codes for PGI?
    2. What transaction code should I use for a Group Delivery?
    Regards,
    Nazim.

    Hi
    Go to VL02 and you can do the PGI.
    Regfarding Group Delivery, you can create a batch job and link the program to the batch job so that the job picks up all the orders and create deliveries.
    Creating a Background Job Using the Job Wizard
    •From the main menu select System>Services>Jobs>Define Job (transaction SM36).
    •Press the Job Wizard button and step through the screens as follows:
    •1:Continue
    •2: Enter a name for your job. Continue.
    •3: Continue with ABAP Program Step selected
    •4: Enter the ABAP Program Name and variant name.
    Press the Print Parameters button, specify the required printer and set the "Time of Print" to "Send to Print Spooler for now".
    Press green tick
    Continue
    •5: If more reports need to be added to the job tick the checkbox, press continue and repeat screens 3 and 4.
    •6: Select how the job is to scheduled (eg Date and Time)
    •7: Enter the required scheduling information ( eg Date and Time) and if required tick "Periodic Jobs"
    •8: If "Periodic Job" was selected select the frequency (eg Monthly)
    •9: Check the job details and press Complete
    Hope the above info helps.
    Reward if useful
    Regards

  • What are the permitted compression techniques for PDF/A-1?

    The PDF/A-1 standard does not specify how compression is performed. What are the permitted compression techniques for PDF/A-1?
    The information I have gathered (not sure if all are true)
    LZW should not be used
    JPEG2000 may not be used
    Few say, JPEG can be used but its a lossy compression. (PDF standard clearly states lossy compression can't be used)
    Also, how to figure out whether a particular file is PDF/A-1a or PDF/A-1b and what kind of compressions are used in that file?
    Thanks in advance.

    For better or worse, ISO specifications are written in a language from a parallel universe.    After dealing with ISO standards for a while, you learn what specific words really mean. I should know - I am chair of the ISO PDF/X task force and co-chair of the PDF/VT task force.
    The word should does not specify a requirement. PDF/A does not prohibit lossy compression.
    JPEG is always a lossy compression. There is a mode of JPEG2000 compression that is indeed lossless. Note that JPEG and JPEG2000 are totally different compression schemes. (I believe that PDF/A-1 as well as PDF/X-1a and PDF/X-3, based on older versions of the PDF specification do not permit JPEG2000. PDF/A-2 based on ISO32000-1 and PDF/X-4 based on PDF 1.6 do allow for JPEG2000.)
    ZIP compression is lossless.
              - Dov

  • What are the Trading Card Games for iPod touch that doesn't requires Internet connection?

    What are the Trading Card Games for iPod touch that doesn't requires Internet connection? Suggestions, please.

    Why not look at the apps and fine out?
    The odds of someone here knowing that are slim to none.

  • What are the best export settings for a HD video in Premier Pro CS4?

    Hi!
       I've been having so much trouble with this issue and it's something that continually frustrates my boss. I have a HD video the settings for it are
    FPS 23.98
    1920 x 1080, then a few lines down it says 1408 x 792
    16 bit,
    2 channels
    48000 Hz
       What should the settings be when I make a new sequence?
                 When I look at it in the window in Premiere Pro I have to contantly 'shrink' the image to fit the window, is that something I should be doing or does it indicate the sequence settings are incorrect?
    But more importantly what should the export settings be? I exported a 4 minute long video and the size was 1 GB, I know that's too big.
    I need to export it without loosing any quality and export another one that meets the Youtube and Vimeo limits on size.
    Vimeo is 500 MB per week, sometimes I upload 4 videos per week. I think Youtube you can only upload 500 MB at a time.
    I need to get smaller sizes with loosing the least amount of quality possible AND the best export settings for quality, so I guess I have 3 separate questions-
    What are the best sequence settings for HD video?
    What are the best export settings for HD without loosing any quality?
    What are the best export settings for the size to come out around 500 MB with loosing the least amount of quality possible?
    Thank You!
    http://forums.adobe.com/thread/713070
    On the above thread I used the 5th anwer, and it's going to take about 7 hours to export a 4 minute video :/

    It Stands for "Coder Decoder."
    Your format is like a container for your video file. Certain containers can hold certain codecs and not others. Other containers can hold other codecs. Sometimes different containers can hold the same codecs.
    This might be a bad analogy but I'll give it a try.
    A coffe cup (container) can hold pretty much any liquid you drink, where a red solo cup (container) won't hold scolding water. So, the coffe cup would be your container of choice most likely because it has the most options for liquids (codecs). But, you might want a red solo cup for just a single crappy beer at a party (a moderate quality streaming video on the web). In that case, you don't need all the optoins of another container.
    In Premiere Pro CC H.264 is a Container and the Codec in one option. This has been streamlined for web distrobution of video to be played in browsers without things like Flash or special players.
    Were as if you choose the QuickTime Container there are over 40 codec optoins (at least on my machine with additinal ones installed) but you may run into an issue where your browser doesn't support QuickTime playback.
    I would say that your container is for compatability with players and your codec is taken into consideration when looking at the quality of the compression.
    Yesteraday I wrote a blog entery on Exporting from Premiere Pro and found that the MPEG-4 codec inside of the QuickTime container gave me much richer colors than the H.264 container/codec option.
    I posted the link before but here it is:
    http://goo.gl/8GZq4i

  • What are the DC power limitations for the ipad.

    What are the DC power limitations for the ipad in a car or airplane.  Can I use and recharge the ipad in a car or airplane with a 28 VDC power system?

    The iPad charger produces 5V and 1000 mW. You would need an convertor accessory which is compatible with the iPad charging system and produces these output levels

  • In package /SAPAPO/MAT, what are the /SAPAPO/CL_PR_EEW* classes for?

    General question:
    In package /SAPAPO/MAT, what are the /SAPAPO/CL_PR_EEW* classes for?
    Specific question:
    Assume your client wants to add custom fields to the APO product master and display them on the standard screens displayed by the MATn transactions (e.g. MAT1)
    Will the above EEW "enhancement classes" provide any way to customize the MATn screens (tabs, subscreens or even exits to pop custom screens)?
    If not, then is there anyway to add custom fields to the MAT1 screens without doing a core mod?

    Same question for XMDSER function group, particularly module
    EXIT_SAPMMDUSER_001
    (fires out of screen 100 initial master data maintenance)
    I think this one will probably work, but it maybe a question of "timing", i.e. what customer action fires the PAI routines which ultimately fire the exit.
    If a simple "ENTER" fires the exit, then we're fine.

  • What are the possible cost objects for raw material consumption postings

    what are the possible cost objects for raw material consumption postings. i want to know whether it can be work order(maintenance order).

    For example, you are confirming a process order and issuing raw materials to the process order, the system in the background creates the consumption posting and will by default use the process order as a cost object.
    Similarly, when you are issuing materials to a work order, you will use MB1A and with movement type 261 and the system prompts you to enter the order number.  If you are using movement type 201, then the system prompts you to enter the cost center and so on.
    Thanks,
    Madhav Nanduri

  • What are Printing Security Best Practices for Advanced Features

    In the Networking > Advanced "Enabled Features" what are the best practices settings for security. Trying to find out what all of these are.  Can't find them in the documentation. Particularly eCCL & eFCL?
    Enabled Features
    IPv4 IPv6 DHCP DHCPv6 BOOTP AUTOIP LPD Printing 9100 Printing LPD Banner Page Printing Bonjour AirPrint LLMNR IPP Printing IPPS Printing FTP Printing WS-Discovery WS-Print SLP Telnet configuration TFTP Configuration File ARP-Ping eCCL eFCLEnable DHCPv4 FQDN compliance with RFC 4702
    Thanks,
    John

    I do work with the LAST archived project file, which contains ALL necessary resources to edit the video.  But then if I add video clips to the project, these newly added clips are NOT in the archived project, so I archive it again.
    The more I think about it, the more I like this workflow.  One disadvantage as you said is duplicate videos and resource files.  But a couple of advantages I like are:
    1. You can revert to a previous version if there are any issues with a newer version, e.g., project corruption.
    2. You can open the archived project ANYWHERE, and all video and resource files are available.
    In terms of a larger project containing dozens of individual clips like my upcoming 2013 video highlights video of my 4  year old, I'll delete older archived projects as I go, and save maybe a couple of previous archived projects, in case I want to revert to these projects.
    If you are familiar with the lack of project management iMovie, then you will know why I am elated to be using Premiere Elements 12, and being able to manage projects at all!
    Thanks again for your help, I'm looking forward to starting my next video project.

  • What are the naming convention rules for BAPI and types

    what are the naming convention rules for BAPI
    points will be rewarded,
    thank you,
    Jagrut BharatKumar Shukla

    Hi,
    plz go through the following links....
    Business application Prograaming Interface is nothing but the Method of a Business object.
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Also refer to the following links..
    www.sappoint.com/abap/bapiintro.pdf
    www.sap-img.com/bapi.htm
    www.sap-img.com/abap/bapi-conventions.htm
    www.planetsap.com/Bapi_main_page.htm
    www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    u can check the below the material also
    what is BAPI?
    BAPI stands for Business API(Application Program Interface).
    I have answered this question before..
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    BAPI
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    List of all BAPIs
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    ***do reward if usefull
    vijay

Maybe you are looking for

  • How to change the name and description of a wim using DISM

    With Imagex we could update the name and description of the wim with on easy command: imagex /info img_file [img_number or img_name] [new_name] [new_desc] e.g. imagex /info Win7Combined.WIM 1 "Win7(x86)" "Windows 7 x86" Since the ImageX tool is depre

  • Help with rsvp total

    I am arranging a trip for a group of middle school / high school students. I have a sheet that lists the student info and then a box to check that they are confirmed. At that bottom of that column I'd like to have the total of the number of people wh

  • Item creation date in PO

    Hi all,          Please let me know if wecan get the PO item creation date can be obtained from any standard tables. My requirement is not to get the PO header document date. Need to get the date on which a line item was added in a PO. Please let me

  • Sync-ing 2 photo libraries

    When I got my new G-5 desktop, I transferred my photo library, along with everything else. Since then, I have downloaded photos from my camera to both locations independently. In other words, I had downloaded some locally taken pics to my G-5, but NO

  • More songs on Ipod then in ITunes - How to update ITunes?

    I have more songs on my Ipod then I do in my ITunes Library. If I plug my Ipod into my computer to sync, will the ITunes get updated with the additional songs on my Ipod? Or will the additional songs on my Ipod get removed since they are not in my Li