Variable URGENT !!!!

Hi, I'm a new user of JSP and I know how I can send a value of a input type text in another page with a submit button.
But, my problem, I would konw how I can write a value in a input type text and refresch my page et display the result in another inout type text ?
Thank for your help

If I understand you correctly, then something like the following would work:
When the user hits submit, then the contents of text1 goes into text2
<%-- leave the action out to submit back to the same page --%>
<%
String foo= request.getParameter("text1");
if (foo == null) foo= ""; // stops 'null' being shown if there's
                                 // nothing there
%>
<form method="get">
<input type="text" name="text1"><br>
<input type="text" name="text2" value="<%=foo%>">
<input type="submit">
</form>Note, I haven't tested this code, I did it off the top of my head, but it should give you an idea of what to do.
Hope this helps,
Raj.
PS: the forum code tag doesn't seem to like '>', so read all '&gt;' as >

Similar Messages

  • Creating text variable, urgent plz

    Hi friends,
               I would like to create a text variable on fiscalyear/period. the requirement is
    when user enters 001.2007   it has to display jan2007
                               002.2007   it has to display feb2007 so on.
       but when I am trying to create on fiscalyear/period it is not allowing me to create text variable. can any one suggest me please, it is an urgent requirement,
    I appreciate your help very much.....
    Ravi.

    Hi ravi
    we can do this with the text with replacement path and the var which u have created u to put display as text thats it...
    take a selection in the rows and create a variable in the text heading and give replacement fron the user entry default variable which the user enters.
    Assign points if it helps
    Khaja

  • Authorization variable URGENT

    Friends,
    i have an urgent requirement on creating an authorization variable. Please bear with me, because i havent done this before. the requiremnet is to create an authorization variable based on Sales rep id such that the sales rep should be able to see data relevant to him only. Can you tell me how do i do that? I saw many documnetationsn online but i dont understand the sequence, i am not sure how to go aobut it.
    Points will be rewarded to all helpful answers.
    thanks
    Laura.

    Laura,
    Here is the link which gives you all the required information
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06#search=%22authorization%20variables%22
    Let me know if you still have questions.

  • Aassign xsi:nill values from element to BPEL variable - Urgent..Plz..

    Hi all,I have a BPEL process which calls a Webservice,and at the end it transforms the output of the Webservice to the Output Variable in my BPEL process,but the thing is this process retuns elements with xsi:nil="true" and I get an error which says
    *Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (4, 3679) Namespace prefix &apos;xsi&apos; used but not declared. Please correct the input xml.*
    I have verified the WSLD,.bpel file,the xsd..they all have xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    Heres the code of the assign
    <from xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    variable="Invoke_P_getlV_OutputVariable"
    part="parameters"
    query="/ns7:getCViewResponse/ns7:getCViewReturn"/>
    <to xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    variable="outputVariable" part="payload"
    query="/ns1:GetOfferResponse/ns1:getCVResponse/ns1:getCViewReturn"/>
    Please temme how do I get this to wrk...I need to get this working immediatly..

    If you need to "clean" some xml from null values (empty tags) you can create an XSLT (like RemoveNullTags.xsl) with the following code:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:apply-templates select="@*|node()"/>
    </xsl:template>
    <xsl:template match="@*|node()">
    <xsl:choose>
    <xsl:when test="normalize-space(.)">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:when>
    <xsl:when test="count(./*)">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    This xslt will remove all the empty tags on your XML. So after you create this and paste it on your project, you need to use it into an ASSIGN activity like this:
    <assign name="Remove_Nulls">
    <copy>
    <from expression="ora:processXSLT('RemoveNullTags.xsl',bpws:getVariableData('inputVariable','payload'))"/>
    <to variable="inputVariable" part="payload"
    query="/ns2:writeCollectedDeleteElement"/>
    </copy>
    <copy>
    <from expression="ora:processXSLT('RemoveNullTags.xsl',bpws:getVariableData('inputVariable','payload'))"/>
    <to variable="inputVariable" part="payload"
    query="/ns2:writeCollectedDeleteElement"/>
    </copy>
    </assign>
    As you can see in this sample, i make 2 copy operations because i have xml arrays, so i need a copy operation for each child the xml element have.
    HTH,
    Andres

  • PCR to read the variable-Urgent help required

    Dear Experts,
    I'm trying to read a variable in a pcr and tried many ways however NOT been successful
    so far hence seeking your help
    I have a WT( 5115) in infotype 15 and I would like the amount to transferred to a varibale and read it in the
    further PCRs.
    PCR1 --> Creating the variable
    5115
    ADDWT&9TMP
    ADDWT *
    PCR2--> Reading the value of the variable
    5115
    AMT=& 9TMP( One space between & and 9TMP)
    AMT?0 -> If the variable exists?)
    =
      AMT= 5008( another wage type)
      ADDWT 5308( new wage type only for passing the value from 5008 to 5308)
      GCY PCR3( another rule to be processed if WT 5115 exists)
    However PCR2 is not getting processed at all for WT 5115.
    Please suggest to help resolving this issue.
    Thanks,
    Poonam

    Dear Remi,
    In case of retro termination following is happening-->
    For retro month( of termination) eg. 08/2014( emp retro terminated effective 27/08/2014 however termination is done in the month of 09/2014)--> PCR is running for decision PPPAR A=A and calculation is done
    For the payroll period ie. 09/2014--> PCR is running for decision operation PPPAR R=R
    Hence the PCR is running twice. I would only like the PCR to be run for the payroll period only.
    Can you suggest what changes should I make in the PCR given below-->
    ZEOF Personnel Calculation Rule  VAR 9TMP
          5008 ESB Calculation Salary
            PPPAR A    Termination in mnth?
                PPPAR R    WCenter inactive/PP?
                    PPPAR F    Term.at end of per.?
                      F
                  R
                    AMT=& 5113 Set
                    AMT?0      Comparison
                        AMT-  5008 Subtraction
                        AMT?0      Comparison
                          <
                            FILLF NRA  Fill amt/no/rate
                            ADDWTE5308 RT   Results table
                            ADDWT *    OT   Output table
                          =
                            FILLF NRA  Fill amt/no/rate
                            ADDWT *    OT   Output table
                          >
                            FILLF NRA  Fill amt/no/rate
                            ADDWTE5208 RT   Results table
                            ADDWT *    OT   Output table
                      =
                        FILLF NRA  Fill amt/no/rate
                        ADDWTE5308 RT   Results table
              A
                AMT=& 5113 Set
                AMT?0      Comparison
                     AMT-  5008 Subtraction
                     AMT?0      Comparison
                                 <
                                   ADDWTE5308 RT   Results table
                                   FILLF NRA  Fill amt/no/rate
                                   ADDWT *    OT   Output table
                                 =
                                   FILLF NRA  Fill amt/no/rate
                                   ADDWT *    OT   Output table
                                  >
                                   ADDWTE5208 RT   Results table
                                   FILLF NRA  Fill amt/no/rate
                                   ADDWT *    OT   Output table
                  =
                    AMT=  5008 Set
                    ADDWTE5308 RT   Results table
                    FILLF NRA  Fill amt/no/rate
                    ADDWT *    OT   Output table
    Please note that WT 5008 is an accural total wage type and exists in every month. However I see that there is NO retro happening for this wage type in the system in case of retro termination. Can that be an issue? Logically retro should run for this WT for Retro termination and it should not exists for the payroll period after termination??
    Thanks,
    Poonam

  • BPS to IP (variables) - Urgent!

    Hi,
    I am stuck with a problem while recreating a BPS application in IP (web). I needed to give the users options to choose values for some characteristics - but I needed to give them a restricted list, not all of master data hence I am not using variables but drop downs in the application. With drop downs, I was able to create list of specific characteristic values as desired and also have a cascading effect (one dropdown's list depends on prior dropdown's selection).
    But the problem now is that, these dropdowns are not affecting the locking mechanism. Since I do not have any variable inputs, except year, all the combinations are getting locked. For eg, even if I select one brand from the first dropdown, all brands get locked. This is a complete show stopper because concurrent planning is completely impossible! Please suggest what can be done to solve this issue.
    I am looking for any kind of solution even if its a completely different approach.

    Unless you include a variable for "Brand" in the filter all brands will be locked to planning once the first user has entered the layout.   This is how locking is designed to behave.
    Include a variable for Brand in the in the filter for the planning query.  The user can then select the next level of chracteristics for the Brand selected.
    Hope this helps.

  • Hascode without instance variable: Urgent

    Hi All
    I have to write hashCode() method correspond to the equals() method in the same class.
    But I dont have any class level variable in this class, I am not able to generate the hashCode() method automatically from Eclise.
    My equals method looks like this -
    public abstract class Value implements iValue
    public boolean equals(Object object) {
    return (compareTo(object) == CMP_EQUAL);
    CMP_EQUAL value is a instance variable of iValue interface.
    Can anyone suggest me how to write hashcode for this class?
    Thanks.

    malcolmmc wrote:
    If the class has no state associated with it then there's no reason to write either hashCode or equals methods for it, since there's no basis for such comparison except instance identity (which is the default).
    In fact instances of a stateless class are interchangeable.If they really were completely interchangeable, then you would want an equals which returns true and hash code which returns a constant value.

  • Environment Variables (Urgent)

    Hi everyone,
    Does any body know how to use environment variable in any application. I am using Oracle 8.1.6 on Windows NT. And I want to use the value of an environment variable in my procedure.
    Any sooner help will be highly appreciated.
    Thanks
    Mustafa Butt

    Even I am trying this :
    declare
         v_user varchar2(30);
    begin
    Tool_Env.GetVar('USER', v_user);
    message('user name : '||v_user);
    end;
    which doesnt give me result as it is showing null as a value.
    Am I making a mistake???

  • Global PLSQL variable - Urgent

    Hi All,
    I have a table type variable declared in Package Spec.
    CREATE OR REPLACE package pkg_monika
    is
    type t_grp_prod is table of grp_products%rowtype;
    tabGrpProd t_grp_prod;
    end;
    Now, in a After Submit Process i populate this tabGrpProd variable with some data. Then i try accessing it in another After Submit Process. Here, i get an error saying :"Reference to uninitialized collection ".
    Is there something i am missing.
    Please help.
    Thanks in advance.
    Monika

    Thanks Scott, for looking into my problem.
    All the below on Same Page
    =======================
    After Submit Process 1 -
    begin
    select *
    bulk collect into pkg_monika.tabGrpProd
    from grp_products
    where project_id = :P0_PROJECT_ID;
    INSERT INTO TEST_MG VALUES ('LEVEL1'||pkg_monika.tabGrpProd(1).product_level_1_id);
    end; -- This process gets called onChange=doSubmit() of a select list.
    After Submit Process 2
    begin
    for i in 1..pkg_monika.tabGrpProd.last
    loop
    INSERT INTO TEST_MG VALUES ('LEVEL1'||pkg_monika.tabGrpProd(i).product_level_1_id);
    -- Here I will eventually write an update statement. Just for testing sake, i have written an insert into my test table.
    end loop;
    end; -- This process gets called when user clicks "Cancel" on the same page.
    Is there something else also, that i should mention to make the problem clearer.
    Thanks
    Monika

  • Package variables urgent

    Hi,
    I want to use certain variables which have been declared in the package ie global variables .
    These variables are to be accessed in a trigger.
    how do i do this.
    any method is welcome,either through functions or procedures.
    please do provide the solution

    Thanks both for the reply.
    Now the scenario has changed a bit.
    what i have done is that i have defined a package variable in the package.
    Now The package has 4 sps and i function.
    I assign a value to the package variable in one of the sps.
    using this value, I insert it into a temporary which i create inside the sp.(using execute immediate)
    can i do this.i get an error of previalges which was sorted out.
    Now i am accesiing the data in the temp table inside the function.the function returns me an id which is retrieved from another table using the value in the temp table.
    This function is called inside a trigger,which gives me an error ora-04601-existing state of package being discarded.
    pls help.

  • Variables   Urgent......

    We have 5 reports with lot of Restricted Key figures in which we are currently using avariable called Zxxxx.This variable is declared as user entry/Default and also there are many customer exist variables which use this Zxxxx variable in deriving thier logics.
       Now our requirement has been changed and we need to change the Zxxxx variable(Which is Processing Type: user entry/Default)  to Processing Type: Customer exit.
    Please Advise the best solution.
    I thought of deleting the existing Zxxxx variable and create new variable with the same technical name Zxxxx with processing type Customer Exit. But unfortunately its not allowing me to change or delete as this variable is used in other reports.
    Thanks in Advance

    There is no direct way to change the processing type of a variable.
    You can get the variable info from the BW table RSZGLOBV. The field VPROCTP of the table has the information about the processing type value 5 is for User entry and 3 is for Customer exit. It is <b>NOT</b> a SAP recommneded solution for changing the table entries manually. You can use the view V_RSZGLOBV from SM31.
    Thanks.

  • Hw to delete variables (urgent)

    hi gurus
    Help me hw 2 delete variables
    WArm REgards,
    kumar

    right click on variable and change variable.. check where used list.. if it is not used anywhere, select delete button..

  • Reading in a registry variable (urgent)

    Hi!
    Does anyone know how to read in a registry variable in PL/SQL?
    I want to be able to read in my filename's name when I'm using host.....
    null

    Hi!
    Does anyone know how to read in a registry variable in PL/SQL?
    I want to be able to read in my filename's name when I'm using host.....
    null

  • Outgoing Payment - Layout Designer

    Hi,
    How to  to show a records which already paid (line by line) but the default report show a line of record (Variable) Urgent! Thanks
    Edited by: Danny Gan on Sep 17, 2008 11:26 AM

    Hi,
    At the outgoing module, it has a Document for payment records, such as vendor ref.code and total payment
    Vendor Ref                        total payment
    A0001                               10
    B0002                               11
    So at the default outgoing report it show a line" AP Invoice - A0001 - $10; B0002 $11 BUT i want a separate records show as : -
    A0001                       $10
    B0002                       $11
    Thanks

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

Maybe you are looking for

  • NW2004s portal , dispatcher and server0 not start

    Hello, I have made an exact copy of our production server to create a development server. I have installed it but the dev server not start. The jcontrol.exe stay yellow and the dispatcher and the server0 stay on "Starting framework". No error in the

  • F110 AP issue -regarding.

    Hello Gurus, In one case different users are posting vendor invoices using MIRO for document type RE and KA.  Since many users are working, my requirement is since many users are working can a user run the F110 in such a manner that only those tranas

  • Use of T-code IK34

    Hi all, When we execute  Tcode IK34 to record measurement reading, system is asking to enter each result(reading at measuring point) as because it is a mandatory field. User wants optional field so that we can skip some measurement point  without ent

  • Why is adobe flash player not supported?

    Why is adobe flash player not supported?

  • Allow duplicate key & value in collection

    Hello Experts, I have once scenario where I have to store duplicate keys (string) and values (string) in Map. I tried with MultiHashMap (Apache) but it's very specific to datatype. It will only allow "string" key and "integer" value. How can I do it?