Modify HttpServletRequest parameters

Hi all
          How can I modify a parameter value of the HttpServletRequest object
          inside a servlet and then forward it to another servlet ?
          Warren
          

Parameters are not modifiable. You can put information in a request
          attribute though, if the second servlet knows to look there first.
          // first servlet
          request.setAttribute("name", value);
          // second servlet
          value = request.getAttribute("name");
          if (value ...
          Cameron Purdy, LiveWater
          "Warren Li" <[email protected]> wrote in message
          news:[email protected]..
          > Hi all
          >
          > How can I modify a parameter value of the HttpServletRequest object
          > inside a servlet and then forward it to another servlet ?
          >
          >
          >
          > Warren
          >
          

Similar Messages

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • How to modify Adapter parameters in PI 7.1 EHP1 ? using NWA

    Hi,
    Please advise me how to modify adapter service parameters in PI 7.1 EHP1 using nwa ?
    in the previous version 3.0 and 7.0, i can use visual admin ---> cluser -
    > services and i can find all the adapter service and modify the parameters.
    Thank You and Best Regards
    Fernand Lesmana

    Hello Fernand
    You can use the following alias to link directly to the PI adapter services
    http:<hostname>:<port>/nwa/sys-config
    See the link below for further details on this.
    Java Service Properties for the Adapter Framework 
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/9f/cbd1413f389c39e10000000a155106/content.htm
    Regards
    Mark

  • Modify Sort Parameters Programmatically

    Hello
        I have a Crystal Report 2008 created with the Group Sort in the report saved to "No Sort". I have a VB.Net windows form application that reads an input file that contains several report parameters including sort options for this report. I need to open the Crystal Report and modify the original sort using the sorting options from the input file. Some of the sort options involve TopN sorting.
       I can view the SortField object properties in the ReportDocument.DataDefinition.SortFields collection for each sort group. But all the properties are read-only. I also noted there is no "Add" option in the SortField collection.
       I need to find a way to programmatically change a group's sortField (or modify another object if SortField is not the right approach) from a "No Sort"  to a "TopN sort".
       Any help or suggestions are appreciated.

    It is not possible to add sort fields, but you can modify thse. See the kbase [1201611 - Can you add report sort field using Visual Studio .NET 2005 with Crystal Reports XI R2|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] for more details.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Crash - CR 2008 crashes constantly when trying to modify query parameters

    Hello,
    When i create a query with 2 parameters of type Date or Date/Time.
    If I try to modify the query sometime after, Crystal Report crashes all the time.
    If i create only 1 parameter of type Date or Date Time, I can modify the query without any problems.
    Any idea why?
    Is there a workaround?
    Thanks

    Install SP2 and test again. If it's still an issue re-post your question.

  • Practical to modify app parameters for deployed app (using Builder, perhaps)?

    I see that it's very convenient to deploy a WAR file to WebLogic using WebLogic
    Builder. It's also easy to edit the init parameters of a WAR file and redeploy
    it.
    I'm wondering, however, how practical it will be to dynamically edit application
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitely have a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WAR that was referenced
    in the deployment, we have what was installed into WebLogic. Is it practical to
    run WebLogic Builder on an already installed WAR file, edit it, and then redeploy
    it? Would we instead have to store the WAR file to be deployed into a "staging"
    environment before it is actually deployed? Any changes made to the WAR by the
    administrator would be made to the staged WAR file and then redeployed. I guess
    the "staging" filesystem would have to be reachable by the host where the administrator
    runs WebLogic Builder.

    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    >
    "Sanjeev Chopra" <[email protected]> wrote:
    "David M. Karr" <[email protected]> wrote in message
    news:[email protected]...
    I see that it's very convenient to deploy a WAR file to WebLogic usingWebLogic
    Builder. It's also easy to edit the init parameters of a WAR file andredeploy
    it.do you mean servlet init-param ?Both that and context init parameters.
    I'm wondering, however, how practical it will be to dynamically editapplication
    parameters and redeploy in a production environment.
    For instance, if I'm in my development environment, I will definitelyhave
    a WAR
    (exploded or not) in my build environment that I can edit and deploy.
    In production, however, we don't necessarily have the original WARthat
    was referenced
    in the deployment, we have what was installed into WebLogic. Is itpractical to
    run WebLogic Builder on an already installed WAR file, edit it, andthen
    redeploy
    it?
    Would we instead have to store the WAR file to be deployed into a
    "staging"
    environment before it is actually deployed?If the .war is deployed with staging mode as "stage", you should have
    no
    problem modifying the master copy and then doing a redeploy. The redeploy
    operation will take care of copying the modified .war to the staging
    areas
    of all targets.Ok, but what I'm wondering is if this "master copy" that you refer to isin a
    location that we set up outside of WebLogic, or whether that is where thedeployed
    WAR gets stored. I'm trying to determine whether WARs that get deployedwill first
    have to be stored outside of WebLogic in a directory that we control,which will
    be on a filesystem that will be accessible by the administrator runningWebLogic
    Builder (using Samba, perhaps).The 'master copy' is the path specified to the deployment tool (deployer,
    admin console) when you deployed the app to WLS. So yes, if thats not
    available to the user running builder, they have to keep a copy, modify it
    and make it available to the admin.

  • How to get HttpServletRequest parameters from two forms in a JSP

    I have this JSP with two forms calling the same servlet. Problem is, when I use a submit button in the second form, I am unable to retrieve the request parameters from the form through the servlet. I am wondering if anybody could give me some info on how to get the request parameters from the second form. I tried to see all the parameter names in the request by calling request.getParameterNames(). But the parameters in the second form are not even seen in the request although I am clicking the submit button in this form!

    First, two forms works fine in one jsp so no need to argue about that.
    Second, did you put the form actions and type ("multipart/formdata " ?) explicit in every form header ? Did you supply different form names ?
    Try to call the submit function through javascript - document.forms[0].submit() for your first, and document.forms[1].submit() for your second form...
    Did you forget to close the form tag by chance ?

  • Cannot create or modify global parameters

    Hello,
    when I try to add global parameters, I can do so and they appear in the list in the global parameters dialog. When I close the dialog and open it again, the newly created parameter has vanished. Same for changes on existing parameters, the changes are not applied.
    What's the reason for that?
    Kind regards,
    Matthias

    Hi,
    these are the NW configurations:
    System XMT      
    Message Server
    Host:      xmtdb01a
    Port:      3900
    Enqueue Server
    Host:      xmtdb01a
    Port:      3200
    Database
    Name:      XMT
    Host:      xmtdb01a
    Type:      Oracle (Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production With the Partitioning and Data Mining options)
    Software Components      all components...
    Name      Version      Applied
    sap.com/SAP-JEECOR      7.00 SP15 (1000.7.00.15.0.20080216073628)      20080408151839
    sap.com/SAP-JEE      7.00 SP15 (1000.7.00.15.0.20080216073456)      20080408151802
    Instance JC01      All processes running
    Host:      xmtdb01a
    OS:      Linux (amd64) 2.6.5-7.244-smp
    dispatcher      Running
    VM      system properties...
    PID:      27981
    Name:      IBM J9SE VM
    Vendor:      IBM Corporation
    Version:      2.2
    VM Parameters
    Cluster
    Node ID:      17346800
    Kernel Version:      7.00 PatchLevel 110760.44
    HTTP Port:      50100
    HTTPS Port:      50101
    P4 Port:                      50104
    Telnet Port:      50108
    server0      Running
    VM      system properties...
    PID:      27982
    Name:      IBM J9SE VM
    Vendor:      IBM Corporation
    Version:      2.2
    VM Parameters
    Cluster
    Node ID:      17346850
    Kernel Version:      7.00 PatchLevel 110760.44
    SDM      Running
    VM       
    PID:      27983
    SDM Port:      50118
    Cheers,
    Matthias

  • Modify Elastic parameters

    I'm useing "Elastic" as a easer for a Move animation.  The elastic bounces a bit too much for my taste.  Is there a failry easy way to modify the amount of "bouncing" it does?  (I'm going to post this as another question as well, regarding the public variables)
    mxml CODE to define animation/effect:
     <fx:Declarations>
     <s:Move id="moveRight" target="
    {blackBox}"duration="
    1200"xTo="
    {changeX}"yTo="
    {changeY}"easer="
    {stretchIt}" />
     <s:Elastic id="stretchIt" />
      </fx:Declarations>
    AS CODE:
    // incrementor variable to keep track of where the infoBox is currently[Bindable] public var currMS:uint = 1;[
    Bindable] public var changeX:Number = 0;[
    Bindable] public var changeY:Number = 0; 
    // Keeps track of the current MileStone // main function including case statementspublic  
    function chooseMS(event:MouseEvent):void{
    switch(currMS){
    case 1: // to Milestone 2 
    //blackBox.move(50,130);currMS++;
    changeX = 50;
    changeY = 130;
    wgText.text = ebs_newMS2;
    ow2.visible =
    true;wh2.visible =
    true; 
    moveRight.end();moveRight.play();
    break;
    ...  the rest of the switched cases are here...

    I extended Elastic and override the ease() function.
    To achieve the effect you see in the sample code, I changed the amplitude to 1 and the period to .6.
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services
    ------------- myComponents/MyElastic.mxml -------------
    <?xml version="1.0" encoding="utf-8"?>
    <s:Elastic xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Script>
        <![CDATA[
          import mx.effects.easing.Elastic;
          private var totalChange:Number = 1;
          private var duration:Number = 1;
          private var amplitude:Number = 1;
          private var period:Number = .6;
          override public function ease(fraction:Number):Number
            return mx.effects.easing.Elastic.easeOut(fraction, 0,
              totalChange, duration, amplitude, period);
        ]]>
      </fx:Script>
    </s:Elastic>
    ------------- test.mxml (main app) -----------------
    <?xml version="1.0"?>
    <s:Application
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:comp="myComponents.*"> 
      <fx:Declarations>
        <s:Bounce id="bounceEasing"/>
        <comp:MyElastic id="elasticEasing"/>
        <s:Move id="moveRight" target="{myImage}"
          xBy="500" duration="2000" easer="{elasticEasing}"/>
        <s:Move id="moveLeft" target="{myImage}" xBy="-500"
          duration="2000" easer="{bounceEasing}"/>
      </fx:Declarations> 
      <s:Panel id="examplePanel"
        title="Bounce and Elastic Effect Example"
        width="800" height="75%">
        <s:HGroup id="detailsBox" width="50%" top="5" left="5">
          <s:Label width="99%" color="blue"
                   text="Click the buttons to watch the effect."/>
          <s:Button label="Move Right" bottom="10" left="5"
                    click="moveRight.end();moveRight.play();"/>     
          <s:Button label="Move Left" bottom="10" left="100"
                    click="moveLeft.end();moveLeft.play();"/>
        </s:HGroup>   
        <mx:Image id="myImage" top="40" width="200"
                  source="@Embed(source='assets/logo.jpg')"/>   
      </s:Panel>
    </s:Application>

  • In Mail, I can't find how to modify smtp parameters for all my account, I have yosemite...

    Hello,
    I have yosemite
    if I add an imap account, I don't found how to access smtp parameter after closing and open mail app
    it is same for gmail account, once added, can't find where to modify smtp
    thanks

    Open Mail preferences. Select Accounts tab, then Accounts Information tab in the window. You can edit the SMTP server list there for all accounts.

  • RSPC How to modify additional parameters for OS command

    Hi,
    I am facing a problem updating the 'additional parameters' for OS command in RSPC (process chains). I am trying to use a pre-created OS command in the system. But the additional parameters area is greyed out. Do you know from which transaction I can update this field please ?
    Thanks for your help,
    Best regards,
    Neeraj

    Thanks, Sircar.
    Is 'sappfpar' transaction name ? Can you pls give the full name?
    Best regards,
    Neeraj

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How to modify Oracle Initialization Parameters in Oracle RAC db

    I would like to modify the AUDIT_SYS_OPERATIONS and SQL92_SECURITY parameters to TRUE. I have a two node Oracle RAC db.
    Should I stop the clustering services, modify the parameters on both nodes and restart them? Or modify the parameter on one node (node1), restart node1, restart node 1 (no modification)?
    ALTER SYSTEM SET AUDIT_SYS_OPERATIONS = TRUE scope=SPFILE;
    Thanks.

    The command
    ALTER SYSTEM SET AUDIT_SYS_OPERATIONS = TRUE scope=SPFILE SID='*' ;is the syntax. However, in RAC using an SPFILE the "SID='*'" specification is the default. IF you want to change a parameter for the local instance (eg PROD1) that you are connected to , specify SID='PROD1' ;
    The documentation states that if you specify a remote instance (eg PROD2) Oracle changes the in-memory value on the remote instance.

  • Adding Parameters in a Filter

    On a scale of one to "Dear God, what is that *thing*!?", how bad is
    it to add parameters to an HttpServletRequest in a Filter?
    I'm not entirely sure why there isn't an addParameter method in
    the request class, so it's hard for me to judge. Is it an optimization,
    or part of the contract?
    Also, does anybody have a good name for such
    a class? :)

    I'm not entirely sure why there isn't an addParameter
    method in
    the request class, so it's hard for me to judge. Is
    it an optimization,
    or part of the contract?There are two types of values that can exist in HttpServletRequest: parameters and attributes. The parameters are the values that are sent from the client side (in submit) and these values can't be modified. Also no other parameters can be added on server side in the request object. Their scope is request.
    The attributes are the values that can be added to the HttpServletRequest on the server side. They can be removed. They exist in the request only during the first forward (Attributes are reset between requests).
    So, it sound like a contract.
    If you need in the request an attribute (that behave as previously described), it is not uncommon to set it in a filter class.
    >
    Also, does anybody have a good name for such
    a class? :)The name of the class generally depends on the functionality the class encapsulates. Fiters names generally ends with 'Filter': "SessionFilter".

  • OIM 11g R1 - Modifying a Resource Erases Custom Process Task ???

    I've created a Generic Resource in OIM that uses the Database Applications Table connector 9.1.0.5.0.
    Then I add my own process tasks through Design Console under "Process Management -> Process Definitions". On each custom process task I've attached my own custom adapters, which I created through "Development Tools -> Adapter Factory" in Design Console. These custom adapters use methods from my Java code. My Java jar file is located in "Oracle_IDM1/server/JavaTasks".
    Now here is the issue:
    Whenever I modify this resource in OIM under "Configuration -> Manage Generic Connector" (E.g Changing reconciliation type from Full to Incremental), all my custom process tasks get deleted.
    What is the reason for this? Is there a solution for this problem?

    This is indeed a major flaw for GTC. Below I found this issue in a Oracle doc.
    Doc Link: http://docs.oracle.com/cd/E14571_01/doc.1111/e14309/aptrouble.htm
    Below is a description of this issue from the Oracle documentation
    Summary:
    Customization work done on objects of a generic technology connector would be overwritten if you perform a Manage Generic Technology Connector operation.
    Description:
    You can use the Design Console to customize connector objects that are automatically created during generic technology connector creation. However, after you customize connector objects, if you perform a Manage Generic Technology Connector operation, then all the customization done on the connector objects would be overwritten. Therefore, Oracle recommends that you to apply one of the following guidelines:
    Do not use the Design Console to modify generic technology connector objects.
    The exception to this guideline is the IT resource. You can modify the parameters of the IT resource by using the Design Console. However, if you have enabled the cache for the GenericConnector and GenericConnectorProviders categories, then you must purge the cache either before or after you modify IT resource parameters. See "Purging the Cache" in the Oracle Fusion Middleware System Administrator's Guide for Oracle Identity Manager for information about running the PurgeCache utility.
    If you use the Design Console to modify generic technology connector objects, then do not use the Manage Generic Technology Connector feature to modify the generic technology connector.
    Connector objects that are automatically created are not deleted even if the generic technology connector creation process fails.

Maybe you are looking for

  • Help with exporting images

    HI I have recently shot a wedding with two bodies.  Forgot to sync the bodies before hand and so left with images at massively different times.  in lightroom i then changed to view by capture time and amended all the wrongly timed images.  i am then

  • How do I unlock Network and other locations that now show padlocks in Bridge CS5?

    In the middle of using Bridge on my laptop with WIN8, I was suddenly confronted with locks on the Network, Homegroup, User, Documents, Videos, and Pictures, and more (but not all). The locks were not there prior to today. I have used this Bridge prog

  • How do I download my pictures fronm my iphone4 ios7 to windows vista?

    I'm having trouble downloading my pictures from my iphone4 to my computer using windows vista. I added my device to my computer but the windows autoplay will not pop-up to let me import my photos.

  • Opening Excel files in Numbers 08

    I have just downloaded iworks08 to my new macbook pro. I have a trial edition of microsoft excel for mac downloaded as well. I have noticed that I am not able to open excel files in numbers 08. Is this true? Is it not feasible to open excel files in

  • Feature request Itunes/Ipod:

    Allow users to plug in a friends iPod to your computer, have your iTunes library recognize content not in your library but available on iTunes and allow the user to purchase that content either in bulk or individually. I have friends who have content