Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

retaining the values in struts

retaining the values in struts

retaining the values in struts


I am doing a pop-up window, for editing the information. To show the information allready available, i am using textboxs and select boxes.

I am writing code like this

  <bean:define id="prefix" name="editDdDetails" property="prefixDd" type="java.lang.String"/>
                                                                    <html:text name="InsNativeForm" property="prefixDD" value="<%= prefix %>" size="8" maxlength="6" styleClass="uppercase" />

I specified the value to be shown in the value attribute of the <Html:text> tag..

But the problem is after the user edited the data in the pop-up, and when he submits it, i am using the validator framework to validate the data(like checking for required fields),if there is any error i am showing the pop-up again, but the data in the text box is going back to what we kept in the value attribute, i want to show the data modified by the user, not the old data.

I now that the problem is with value attribute, but is there any other way to hold the data..

thanks for ur time and help  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close