jsp page values

Discussion in 'Java' started by raj, Mar 1, 2005.

  1. raj

    raj Guest

    hi,
    I have a struts web application. the JSP page in the application is
    retaining the values previously entered in the input fields whenever I
    run the page on the server. The fileds become blank only when I restrat
    the server. But I want this to happen each time I load the page.
    can someone help me with this?
    thanks,
    raj
    raj, Mar 1, 2005
    #1
    1. Advertising

  2. Hi,

    Have you tested ActionForms's reset-method?

    http://struts.apache.org/api/org/ap...apping, javax.servlet.http.HttpServletRequest)

    Yours,

    Jouko
    raj wrote:
    > hi,
    > I have a struts web application. the JSP page in the application is
    > retaining the values previously entered in the input fields whenever I
    > run the page on the server. The fileds become blank only when I restrat
    > the server. But I want this to happen each time I load the page.
    > can someone help me with this?
    > thanks,
    > raj
    >
    Jouko Johansson, Mar 1, 2005
    #2
    1. Advertising

  3. Jouko Johansson wrote:
    > Hi,
    >
    > Have you tested ActionForms's reset-method?
    >
    > http://struts.apache.org/api/org/ap...apping, javax.servlet.http.HttpServletRequest)
    >
    >
    > Yours,
    >
    > Jouko
    > raj wrote:
    >
    >> hi,
    >> I have a struts web application. the JSP page in the application is
    >> retaining the values previously entered in the input fields whenever I
    >> run the page on the server. The fileds become blank only when I restrat
    >> the server. But I want this to happen each time I load the page.
    >> can someone help me with this?
    >> thanks,
    >> raj
    >>


    Try setting the scope of your form bean to request in your action mapping.

    Regards
    Michael Sars Norum
    Michael Sars Norum, Mar 1, 2005
    #3
  4. raj

    raj Guest

    thanks! it worked
    raj, Mar 1, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arnold Peters
    Replies:
    1
    Views:
    1,529
    Tomer Ben-David
    Oct 27, 2004
  2. DigitalUncle
    Replies:
    0
    Views:
    888
    DigitalUncle
    Nov 2, 2004
  3. Shinya Koizumi

    <%JSP:include page="hello.jsp" %>

    Shinya Koizumi, Mar 9, 2006, in forum: Java
    Replies:
    3
    Views:
    9,646
    Raymond DeCampo
    Mar 12, 2006
  4. Replies:
    0
    Views:
    4,336
  5. Husain
    Replies:
    3
    Views:
    172
    Thomas 'PointedEars' Lahn
    Apr 14, 2008
Loading...

Share This Page