*
The moose likes Struts and the fly likes Multiple calls to populate ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple calls to populate ActionForm" Watch "Multiple calls to populate ActionForm" New topic
Author

Multiple calls to populate ActionForm

ram nagab
Greenhorn

Joined: Dec 02, 2003
Posts: 25
Hi

here is my sequence

jsp -> action A -> action B

Within a sequence of Actions (with no intermediate user interaction), the
ActionForm is populated with the request parameters' values each time the
request is forwarded to the next Action. As a consequence, an Action B,
following an Action A, will not 'see' the ActionForm in the state Action A left it in, but instead get as the ActionForm's properties' values, the parameters' values provided with the HTTP request. (I.e. Action B 'sees' in the ActionForm what, e.g., the user entered, instead of what Action A already did with it.)

I made some changes on the form on action A but unfortunately action B can not see those changes . action B sees only the values entered in the JSP

I have no control under action B and I can not remove "name" property from the action definition in struts config because action B under another developer's control

is there any solution for my problem

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple calls to populate ActionForm
 
Similar Threads
How to forward radio button input from one jsp to another?
DynaValidatorForm
A buildDTO() in Action or in ActionForm ???
Pre-populate form
Struts Design Question