Can't define init parameters for multiple servlets

I want to define init parameters for two servlets in the web.xml file but i only get null for my Login servlet
<web-app>
<servlet>
<servlet-name>
RSServlet
</servlet-name>
<servlet-class>
RoadSafe.Servlet.RSServlet
</servlet-class>
<init-param>
<param-name>serverip</param-name>
<param-value>localhost</param-value>
</init-param>
     <load-on-startup>
          2
     </load-on-startup>
</servlet>
     <servlet>
<servlet-name>
Login
</servlet-name>
<servlet-class>
RoadSafe.AdMisc.Login
</servlet-class>
<init-param>
<param-name>serverip2</param-name>
<param-value>localhost</param-value>
</init-param>
     <load-on-startup>
          1
     </load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>
RSServlet
</servlet-name>
<url-pattern>
/RSServlet
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
Login
</servlet-name>
<url-pattern>
/Login
</url-pattern>
</servlet-mapping>
</web-app>

In the code for you Login servlet, are you using the name "serverip2" to access the initial parameter ?
Thats the name you have used in the web.xml file.

Similar Messages

  • Can't find init file for Database

    Hi,
    I just installed 9i R2 on Redhat 7.3 and when I create a database with dbca, the db is created and up running fine. However, when I shut the db down and try to restart it, it says 'Can't find init file for Database "db_name"'. Anyone got any ideas?
    Thanks!

    While connected as sysdba issue :
    CREATE PFILE FROM SPFILE;
    --This creates an initSID.ora file under $ORACLE_HOME/dbs.
    You can edit this file to modify any init parameters.
    To have the effect this these new parameters startup the database with:
    STARTUP PFILE=$ORACLE_HOME/initSID.ora.
    To create spfile with the modified values use:
    CREATE SPFIL FROM PFILE;
    Once you create the SPFILE and when you start the db, SPFILE will be used.
    HTH
    Thanks
    CP

  • Can you establish different sounds for multiple emails?

    Can you establish different sounds for multiple email accounts? 

    Sorry no, sound/alerts is universal for different email accounts.

  • Can you buy a plan for multiple computers?

    Can you buy a plan for multiple computers? For just one price and one account?

    MBAs do not have user replaceable batteries. I'm not sure you could even buy third-party replacement batteries. You may be able to purchase an Apple part through places like ifixit.com.

  • Where can i define a rule for copying ATP results to purchasing?

    Hello Gurus,
    Where can i define a rule for copying ATP results to purchasing? i read from http://help.sap.com/saphelp_erp2005/helpdata/en/43/543835bc0f357ee10000000a11466f/content.htm that we can define this rule.
    Thanks

    Hello,
    i defined that part before, what i would like to define is below:
    Thanks
    &#9679;     Rule for availability check
    Define a rule for copying ATP results to purchasing.
    This rule controls how the system behaves in material shortage situations, and how the delivery proposal (confirmation proposal) is displayed.
    <b>You can control the following factors in Customizing:</b>
    &#9675;     Display of results
    You define how the system copies results of the availability check to the stock transfer document. In other words, you define how the delivery proposal is displayed in the delivery schedule line view.
    You can choose between the following rules:
    &#9632;      One-time delivery (rescheduling: delivery proposal) – <blank>
    This setting corresponds to the system behavior up to and including SAP ERP Central Component, Release 5.0.
    &#9632;      One-time delivery – A
    &#9632;      Complete delivery – B
    &#9632;      Delivery proposal – C
    &#9632;      Selection window for material shortage (batch: one-time delivery) – D
    &#9632;      Selection window for material shortage (batch: delivery proposal) – E
    &#9632;      Selection window for material shortage (batch: complete delivery) – U

  • Providing init parameters to a servlet portal component

    I'm creating a portalcomponent based on a servlet. So I have the following declaration in my portalapp.xml:
          <component-config>
            <property name="ComponentType" value="servlet"/>
            <property name="ClassName" value="test.TestServlet"/>
    Now I want to provide standard init-parameters (as defined in a servlets' web.xml) to this servlet, but I can't find any documentation describing how to do this. Standard profile parameters do not get through to the ServletConfig or ServletContext.
    Any help will be appreciated.
    Regards,
    Marnix

    seems simple enough right
    but i don't get this to work.
    private Vector parameterNames = null;
    public void init(){
    parameterNames = new Vector();
    for(Enumeration e = this.getInitParameterNames(); e.hasMoreElements() ;) {
    parameterNames.add(e.nextElement());

  • KM Search: How can I define a query for the user who currently logged on?

    Hello,
    I want to use the KM Search iView to display all documents from the currently logged on user in a certain sort order. The result should be some kind of report for the user...
    In the search option I can define a default sort order. And I can also define it for a special user with cm_modifiedby(value=username)
    But how can I define the predefined property value generically for the current user?
    I tried to insert following values in the parameter Predefined Properties of the search option:
    Predefined Properties (csv): cm_modifiedby(value=<user.id>)
    Predefined Properties (csv): cm_modifiedby(value=%user.id%) -> like in the predefined properties
    Predefined Properties (csv): cm_modifiedby(value=$sap_user) -> like in the xml forms builder
    But non of these 3 parameters worked. Has anybody an idea what the right variable is?
    Thanks a lot.
    Best regards
    Nicole

    Hi Nicole,
    1. First of all you need to use "<User.UserID>" to get the currently logged on user.
    2. You need to create an AppIntegrator iView (so based on com.sap.portal.appintegrator.sap.Generic) in order to be able to use this dynamical parameter. The parameter "URL template" should look like:
    <Request.Protocol>://<Request.Server>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch?layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=quick&rndLayoutSet=SearchResultLayoutSet&SearchCompsName=UISearchComponents&QueryString=*&SelectedCustomProps=cm_modifiedby(value=<User.UserID>)
    Best regards,
    Robert

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • Define IView parameters for JspDynpage

    Hi,
    I have a JspDynpage Portal application that is called on many places. Now I want to define a inputparameter for that application that I know where it is called.
    Is it some where on the IView configuration possible to define some application parameters?
    I know that this is possible on WebDynpro. But I didn't find that setting for JspDynpage.
    Thanks and Regards,
    Dennis
    Does no one know how to do that?
    Message was edited by: Dennis Junker

    You can define any parameters you like in the portalapp.xml file (check the documentation). Once these parameters have been defined, when you create the iviews you can give different iviews different parameter values.
    I hope this helps
    D

  • Can't change sort settings for multiple items in iTunes 7.1

    iTunes 7.1 introduces a great feature—the ability to set a separate Sort Name, Sort Artist, Sort Album, etc. This means that "Weird Al" Yankovic songs can finally appear down among the Y's instead of up at the top of every list, by changing the Sort Artist to Yankovic, Weird Al.
    Unfortunately, this feature is fatally crippled in 7.1. As far as I can tell, you can only change the Sorting information on individual tracks. When you change the information for multiple tracks, the Sorting tab doesn't show up. This renders the feature all but useless.
    Let's say (hypothetically) that your friend is an enormous nerd (in theory) and your friend has 139 "Weird Al" Yankovic tracks (for the purposes of this example only, of course). Instead of just selecting all these tracks at once and changing the Sort Artist to Yankovic, "Weird Al", I (I mean, he) has to retype this information for each individual track. That's crazy! Surely this must be a bug.
    Core 2 Duo 20" iMac   Mac OS X (10.4.8)  

    I just found the solution to this myself.
    In a very un-Apple way, this is an undocumented feature only accessible by right- (or control-) clicking.
    1. Change one track to your desired sort settings (for instance, set the Sort Artist to Yankovic, Weird Al.
    2. Right-click on that track. In the contextual menu that appears, there is a new submenu called "Apply Sort Field." If you choose "Same Artist," it will apply your new sorting information to all your other tracks by "Weird Al" Yankovic (or, if you are not a huge nerd, any other artist you substitute).

  • Can we set iPad up for multiple user

    Can we set up and iPad4 for multiple users

    iPads are single-user devices. Unlike a computer they are not able to have multiple user accounts.

  • Can I use Concatenate function for multiple rows?

    I have a lead list that contains 5000 leads. The format of this list contains address data that is saved in separate columns (ie: address, address 2, city, state, zip). I need this data in 1 column. I tried to use the concatenate function to combine the data for 1 row and it worked perfectly. I tried to do this for multiple rows and the function is greyed out. Is there a work around or way that I can combine this data for all 5000 rows without doing it 1 by one?

    Look at this table;
    In B9, the formula is;
    =B2&" "&C2&" "&D2&" "&E2&" "&B3&" "&C3&" "&D3&" "&E3
    Yvan KOENIG (VALLAURIS, France) dimanche 18 octobre 2009 20:51:47

  • Can we define search paths for an SQR ( just like -i for SQC )

    Is it possible to define search paths for an SQR ?
    Ie at run time, we would like the system to look for the SQR in c:\sqr1\ if not found then look in c:\sqr2\ and so on .. until c:\sqr4\
    Right now this feature exists ONLY for the SQC via the -i flag
    ( ex: c:\ps_home\bin\sqr\ora\BINW\sqrw.exe c:\xrfwin.sqr -ic:\sqr1\;c:\sqr2;c:\sqr3;c:\sqr4\ )
    We would like to be able to do it VIA:
    1) The process Scheduler. ( Where do we set it up ? in PSPRCS.CFG ? Not sure how )
    2) Command line. ( We can't find any flag that could satisfy this need )
    Note: We heard about a few hints ( SQRPATH, psprcs file, @FILE flag, PSSQR ) but not able get any of them cleared out.
    This is delaying our development and it's quite crucial for us.
    Any thoughts or hints would be VERY APPRECIATED !!
    Thanks

    Kelvin wrote:
    1) The process Scheduler. ( Where do we set it up ? in PSPRCS.CFG ? Not sure how )From the link below, do a search for "SQR Section" and you'll find PSSQR1, PSSQR2, PSSQR3 and PSSQR4 for sqr search paths
    http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tprs/book.htm?File=tprs/htm/tprs16.htm#H3002
    2) Command line. ( We can't find any flag that could satisfy this need )I'm not aware of any equivalent for cmd line, but most of the time you know where it has been stored when running it manually. You could get more in the Peoplebooks :
    http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tsql/book.htm?File=tsql/htm/tsql08.htm#H3019
    If you don't find anything and the cmd line is really needed, you could probably write your own script (ie .bat or .cmd) looking for the sqr which you could give as a parameter.
    Nicolas.
    Edited by: N Gasparotto on May 24, 2012 10:10 PM

  • Can i define different tailers in multiple reports?

    Dear all,
    Can i define different tailer section in multiple reports or define tailer section in only first report. How i can do this?
    Regards,
    Nadeem

    Thanks You Sir.
    But when i select edit margin it display only first report margin where i create layout into its own frame how i can display margin of other reports where i can define tailer in a single report.rdf file?
    again thanks.
    regards,
    Nadeem.

  • How Can I Defined Amount Limit For All Invoices For A Supplier ?

    Hi ,
    I Want To Define Amount Limit For All Invoices For Supplier When all Invoices Amounts Be Specify Amount It Make hold For It
    Thanks,
    Mohamed Gamal

    Hi.
    At Suppliers site:
    Invoice Amount Limit. If you enter an invoice for a supplier site that exceeds the invoice amount limit you specify, Payables applies an Amount hold to the invoice during Invoice Validation. You cannot pay the invoice until you release the hold. You can release the hold by adjusting the invoice amount, changing the Invoice Amount Limit for the supplier site, or you can manually release the hold in the Holds tab of the Invoice Workbench.
    Octavio

Maybe you are looking for

  • Application server will not start up

    Hello, I have read quite a few topics concerning this problem, and have tried many things but without success. I am running on Windows XP Pro. The installation goes fine, but when I run a project, the application server cannot start, and I get a mess

  • Problem when streaming out a binary file

    Hi, I am trying to stream out a binary file to an output stream (not a file, but a socket). My file is a gzip file, and I was initially simply trying to open the file, read it to a a byte array, and writing it out to my output stream. However, I got

  • Idvd doesn't open after update

    I just updated iDVD and it doesn't open. I'm running the current OSX. Has anyone out there had this problem? And, Solved it. Thanks

  • CSS Align right problem

    Hi I am using the following css to align a div to the right hand side of the page: #headerRight { RIGHT: 10px; MARGIN-RIGHT: 0px; POSITION: absolute; TOP: 5px; align: right; border: 0; width: 235px;} The above seems to work well, except for one small

  • Workaround for inability to scan on USB 3.0 port

    I've got a late 2012 era Mac Mini (specifications here) that I'm trying to set up as a printing and scanner server for my Brother MFC-7340. Long story short, I have discovered that scanning does not work when the MFC-7340 is plugged in to a USB 3.0 p