Struts:transfering values

hi all,
i have to transfer values between two pages. how could i do that.
my actual problem is that on the first page i accept the user name. on the second page i have to populate a text box with the value of the name entered. i cannot use any HTML tags. the entire application is on Struts. should i in my form bean of second page do something?
please respond soon
thanks in advance

hi bsampieri,
thanks for the help but it doesn't work. first of all i dont want to make it a hidden field. i want that on my second page the value of the username accepted on the first page be displayed in a text box.
so i am using <html:text> tag with the username as property. the moment i use
value="<%= request.getParameter("username") %>" it throws me an error --- Attribute name has no value.
also if i use <bean:write> in the value property it just displays the text as it is.
please try to help me on this

Similar Messages

  • Delete the transferred values using the transaction for changing old assets

    how to Delete the transferred values using the transaction for changing old assets.
    i want delete the my asset.
    Thank you
    Anil

    Dear Anil,
    AS06                 Delete Asset Record/Mark for Delet.
    AS26                 Mark group asset for deletion     
    Hope this will help.
    Regards,
    Naveen.

  • Error while transfering Value of  SY-TABIX to a variable  ?

    Hi,
    As per my req , i have code like this .
    {{ Data : idx3 type sy-tabix .}
    {READ TABLE ITAB2 with key----
    { if sy-subrc = 0 .
         idx3 = sy-tabix .
        DELETE i_sort INDEX idx3 .
    endif .}
    clear idx3 .}
    but it gets sortdumb ,
    While in debugging mode , i checked Sy-Tabix value is 11 suppose , but IDX3 = * ,
    The value is not tranferring to idx3,
    But its working fine for other records .??
    so what is the root cause of this kind of error , ??

    Hi all,
    I solved it ,
    Actuaally the problem was here .
    Data : idx1 , idx2 type sy-tabix.
    so system was considerings idx1 as char type ,length 1. and when after READ statement i transfered the value of sy-tabix to idx1 , if sy-tabix value is <= 9 , then IDX1 contains that value, but if SY-TABIX is 2 character , it cud nt transfer the value to IDX1 .
    so it was getting sort dumb.
    I declared like this .
    Data : idx1 type sy-tabix,
               idx2 type sy-tabix.  now its fine
    Anyways thanks to all for your help

  • Passing struts-tag value to java / javascript variable in JSP

    Hello all,
    Im trying to pass the value got from the struts-tag to the java variable in the Jsp. However Im not able to get the o/p. Can u guys help me on this pls...
    <logic:notEmpty name="TreeBean" property="list">
        <logic:iterate id="Type" name="TreeBean" property="list" indexId="i">
         <br/><bean:write name="Type" />
        </logic:iterate>
    </logic:notEmpty>Here the list can be populated in the jsp page. However i want the values into jsp list. Im not able to populate the same..
    <% List jspList = null;
    %> I want the values into the jspList variable for further processing. Can u guz pls help me on this....

    Which do you want it in?
    A java variable for use in <% scriptlet code %> or a javascript variable for use on the client end?
    scriptlet:
    <jsp:useBean id="TreeBean" type="java.util.List" class="java.util.ArrayList" scope="?????" />
    Having scriptlet code on the page is considered bad coding style.
    What is it you are trying to accomplish by making the value accessible?
    What are you trying to do in java / javascript that can't be done with JSP tags?

  • How to overwrite the value of a struts variable value using struts only

    Say i define a variable using struts in my jsp
    <bean:define id="aVar" value="abc" />
    Now the variable has a value of abc , how can i overwrite it again to have another value --say "123"..
    I need to change its value using struts only and not scriplet.
    Kindly help ....

    This page may be helpful:
    http://www.exampledepot.com/egs/javax.servlet.jsp/usebean.jsp.html

  • RRI Problem: Transferring Value to a Value Range Global Filter

    Hi experts,
    I am facing a problem with the transfer of value during RRI jump. I have the following query definition:
    Sender Query: Customer ID, Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    Receiver Query: Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    The problem lies in Valid From and Valid To. In both queries, I have defined a filter replacement path variable with value range for these two characteristics:  Valid From (<= Billing Date), Valid To (> Billing Date). However, no values will be transferred to the Valid From and Valid To in receiver query and this triggers an uncaught exception during RRI call.
    Could anyone please shed some light in this issue?
    Thanks,
    Joon

    Hi Suman,
    yes, both queries are from the same InfoProvider. When I provide static single values for the From (<= 31.12.2010) and To (> 31.12.2010) dates in global filters of the receiver query, I get the correct result. If I instead select the Replacement Path variables I get exception.
    Regards,
    Joon

  • Struts portlet- value lost in dropdown on submit

    Hi ,
    I have developed a struts portlet .it works fine in Oc4j environment.
    I have a dropdown with static values when submitted from a portal container the value gets cleared.
    the PDK Version is : 10.1.2.0.2
    my jsp code is
    <html:select property="feedbackreason">
    <html:option value="Technician's Willingness to Help">Technician's Willingness to Help</html:option>
    <html:option value="Technician Knowledge">Technician Knowledge</html:option>
    <html:option value="Technician's Demeanor">Technician's Demeanor</html:option>
    </html:select>
    Please suggest

    Hi,
    The issue was solved by oracle portal support team .
    In Metalink Note:357760.1
    please refer to ethe exaample below:
    <select name='<%=
    PortletRendererUtil.portletParameter(pReq, "preferred")%>'>
    <option value ="">Please SelectOption </option>
    <option value="P">Personal</option>
    <option value="O">Official</option>
    </select>
    Regards
    Prem

  • Reading a text file and transferring values into array

    Hi,
    I have a problem. So what I am trying to do is that, I read a text file and insert specific values from the text file into an array for future needs.
    But I have to make sure that there is no duplicate entries. So thats what I have but, my method takes forever to finish...
    here is my code:
    String nomFichier = "Test_" + numTest + "_" + date + ".txt";
            String ligne = "";
            int z = 0;
            int j = 0;
            BufferedReader lecteurFichier = new BufferedReader(new FileReader(nomFichier));
            while ((ligne = lecteurFichier.readLine()) != null) {
                if (z > 3)
                    String valeur = "";
                    String dist = "";
                    boolean unique = true;
                    String [] chiffre = ligne.split(";");
                     if (intervalleAnalyser == 1)
                        valeur = chiffre[3];
                        dist = chiffre[4];
                    if (intervalleAnalyser == 2)
                        valeur = chiffre[2];
                        dist = chiffre[4];
                    if (intervalleAnalyser == 3)
                        valeur = chiffre[1];
                        dist = chiffre[4];
                    if (z == 4) {
                        intervalleDiagramme[j] = valeur;
                        j++;
                    if (z > 4) {
                        for (int i = 0; i < intervalleDiagramme.length; i++)
                             for (int x = 0; x < i; x++)
                                 if(intervalleDiagramme[i] == intervalleDiagramme[x])
                                    unique = false;
                        if (unique)
                            intervalleDiagramme[j] = valeur;
                        j++;
                z++;
            lecteurFichier.close(); // toujours fermer le fichier

    Hi,
    Thanks for your reply,
    1) Yeah I have a method that asks the question and assigns it to a variable.
    2) Well the z will stop once there is no lines to read no?
    for the set.add(), I am not that familar...
    I changed bit a code and I have this now:
    if (z > 4) {
                        for (int i = 0; i < intervalleDiagramme.length; i++)
                            System.out.println(intervalleDiagramme);
    if(intervalleDiagramme[i].equals(valeur))
    System.out.println(intervalleDiagramme[i] + " " + valeur);
    unique = false;
    if (unique)
    intervalleDiagramme[j] = valeur;
    EDIT:
    I figured a way to assign " " to all the values in my array. But I get this error:
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 380
    at TP3.lireFichier(TP3.java:305)
    And my line 305 is: intervalleDiagramme[j] = valeur;
    EDIT2:
    So ok I found my mistake and corrected it. But I want to know is there a way of doing this without setting the size of the array? because sometimes there needs to be 21 values sometimes 19 and sometimes 20....
    If I take out: = new String [21] out I get a NullPointer error...
    Edited by: Ara1992Habs on Dec 13, 2009 7:29 AM
    Edited by: Ara1992Habs on Dec 13, 2009 7:37 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Transferring values across tables

    I have a document which has the same table on each page, but with different values. On each of these tables there is one cell which adds up the values of the table. Is it possible to add the totals from each page and have that master total autosummed on the front page of the document?

    I had this problem. I wanted to use a table to create a timesheet of work done, then copy the total charge incurred into the body of the invoice letter.
    The only way I could find to do this was to turn the whole letter-plus-timesheet into one big table, then merge cells horizontally to create a big table cell where I wanted my ordinary letter text, put the total in a separate row with two cells (text and value). Then I had to create a break to make sure the page break came in the right place, and finally I used the Inspector dialogue to make all the unwanted table dividers invisible.
    This is ok for me, because I only had to create the template once, so the tedious setup work does not have to be repeated.
    However, I'd like to see Apple address this issue properly in the next upgrade (I upgraded because of the spreadsheet facility precisely to make billing easier).
    - Martin D

  • Transferring values from G/L accounts into Intagible Assets

    Hi all,
          We have an issue. We have created new asset classes for intangible assets. Now we want to create assets for intangible assets and transfer the balances from already existing intangible accounts to the newly created assets. CAn anyone tell me how we cando this.
    Thanks,
    Kris

    hi Mohan,
    so simply use transaction f-91
    so that you can clear your G/L-acc.
    Andreas
    pls reward useful answers
    thank you

  • Values missing in excise invoice output

    Hai Gurus,
    We take excise invoice printout from VF02 using a Z - output type.When we take the print preview, all the values are coming properly. But when i take the printout, certain values like excise region, time of removal, transfering values, BED etc is not printing. Even it is same when i check the spool requestalso. But when i take the printout for the second time i am getting all the values correctly.
    Thanks in advance
    Gino

    HI,
    In SPRO-Logistic general-Tax on goods movement-India -Basic setting-Maintain excise registration
    here check your for excise registration number  you have mark check for for cess and AT1
    it should be there
    second check you have maintain 100% setoff condition in your PO for same condition
    Regards
    Kailas Ugale

  • Using Multiple Properties Files in Struts Framework

    Hi Everybody!
    I just to know how to use a multiple message-resources files in a Struts Framework.
    I've 2 properties file :
    1. ApplicationResources_A.properties
    2. ApplicationResources_B.propertiesI put the files under WEB-INF/classes dir.
    My configuration in struts-config file something like below:
    <!--  Begin Testing -->
         <message-resources key="A" parameter="ApplicationResources_A" />
         <message-resources key="B" parameter="ApplicationResources_B" />
    <!--  End Testing -->
    </struts-config>
    if my JSP code is like below , this error is thrown:
    org.apache.jasper.JasperException: Cannot find message resources under key A
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message bundle="A" key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message bundle="B"  key="user.lang.desc"/></td>
      </tr>
    but  if I change the  JSP code like below it  work fine:
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message  key="user.lang.desc"/></td>
      </tr>
    In this code , I dont know  which resources file is used.
    So how do I solve this problem. Thanks you.

    I have defined the following:
    struts-config.xml
    <message-resources key="ldap" parameter="com/project/struts/ldap"/>
    Action.java
    In execute method:
    MessageResources messageResources= MessageResources.getMessageResources("com/project/struts/ldap");
    System.out.println("INITIAL_CONTEXT_FACTORY"+messageResources.getMessage("INITIAL_CONTEXT_FACTORY"));
    and it is working, however I have to change "com/project/struts/ldap" value in Action.java file whenever there is any change in name or location of ldap.properties.
    Can I access this properties in such way that I don't have to change parameter path manually in Action.java (modifying in struts-config.xml is okay)? like access through key="ldap" or something.
    Thanks and regards,

  • Hello Word Struts 2.0 Application not working in JDeveloper 10.1.3.2

    Dear All,
    I have created Hello Word Application in Struts 2.0 in JDeveloper. It gives following Exception:
    java.net.ProtocolException: Server redirected too many times (20)
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
         at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
         at org.apache.commons.digester.Digester.resolveEntity(Digester.java:1617)
         at oracle.xml.parser.v2.NonValidatingParser.pushExternalDTD(NonValidatingParser.java:533)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:491)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:323)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:302)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
         at org.apache.commons.digester.Digester.parse(Digester.java:1745)
         at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:745)
         at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:686)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:353)
         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
         at com.evermind.server.Application.getHttpApplication(Application.java:571)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1973)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1925)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:424)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:392)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:433)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Aug 3, 2010 5:17:29 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register
    INFO: Parsing configuration file [struts-default.xml]
    Please give your inputs as early as possible.
    Thanks & Regards

    Dear John,
    Yes, Jdev 10.X only support Struts 1.0 but i have configure Struts 2.0 supported all Lib files in JDev and also please find entries of Struts-config.xml and web.xml file below:
    Struts-config.xml :_
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts-config>
    <message-resources parameter="view.ApplicationResources"/>
    <!--constant name="struts.enable.DynamicMethodInvocation" value="false"/>
    <constant name="struts.devMode" value="false"/>
    <constant name="struts.custom.i18n.resources" value="ApplicationResources"/-->
    <package name="default" extends="struts-default" namespace="/">
    <action name="login" class="net.viralpatel.struts2.LoginAction">
    <result name="success">Welcome.jsp</result>
    <result name="error">Login.jsp</result>
    </action>
    </package>
    </struts-config>
    And Web.xml file :_
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <filter>
    <filter-name>struts2</filter-name>
    <filter-class>
    org.apache.struts2.dispatcher.FilterDispatcher
    </filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    Also as par your last reply, eventhough i got the same exception.
    Please give your inputs and let me know if you want more information.
    Thanks,

  • Auto transfer of values from one customer to another/vendor to vendor

    Hi,
    Do we have any transaction code which transfers values automatically from one custmer/vendor to another customer/vendor.
    Thank you,
    Asam

    try f-30
    This is transfer with clearing.
    You need to know the value of the customer and then you can journal it to clear all open items against the customer and create a single line item in the new Company Code.
    This t code is also used to move line items to different company codes and special gl indicators.
    It can be used for Vendors as well.
    Please award points if this is helpful.

  • Multiple struts app in one provider

    I have two Struts Application, which have been converted into two PDK Portlets, as per the tutorials provider in the OTN site.
    The problem is that, I want the two portlets to talk to each other.. preferably by session. But, as i noticed that, the two portlets belong to two different providers, so it is not possible to share any data between them.
    Can I have two or more pdk struts portlets in one Provider.
    If there is any other way to share information between two Pdk struts portlets, please tell me...
    it would be of great help.
    Thanks
    Sam

    I have been trying to do something similar, but I keep receiving the following exception:
    java.lang.NoSuchFieldError: appConfig
    at oracle.jbo.html.struts11.BC4JRequestProcessor.processContent(BC4JRequestProcessor.java:148)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:233)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    My web.xml looks like:
    <servlet>
    <servlet-name>bc4jaction</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
    </init-param>
    <init-param>
    <param-name>BC4JDefinition</param-name>
    <param-value>Struts</param-value>
    </init-param>
    <!--<init-param>-->
    <!-- <param-name>config</param-name>-->
    <!-- <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>-->
    <!--</init-param>-->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/documentservices</param-name>
    <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

Maybe you are looking for

  • Update was terminated in VF02.

    I have added two segments to the Invoice idoc INVOIC02 . In the user exit EXIT_SAPLVEDF_002 , inside Include ZXEDFU02 , i have another include by name include yxedfu02_us. inside this I have added the code to populate the two added segments for E1EDK

  • When i export my videos from iphoto onto my hard drive, they have today's date instead of the date the video was taken.

    how can i fix this? i sync iphoto with my iphone but when i export the vids onto my hard drive, i lose the date the vids were taken. help?

  • Can't drag a tab out

    The demo video and help both state you can drag a tab out of the current window to the desktop to make a new window with that tab. Does not work on my Windows XP system. Work for anyone else?

  • Delimited reports crash following Patch3a installation

    Delimited output causes crash following Patch3a installation Ive recently installed patch3a with a view to getting my delimited output to load directly into Excel. However following the installation of the patch Im now getting the following error 'Th

  • Backlight keyboard on MBP

    Hello, I owned 2013 MBP withput retina display and I expericing an unsual backlight keyboard on my MBP, it will increase the light when i work in light area but it will dim the light when i used it on dark room (lamp off), from the information that i