Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to not to lose parameter after validate() method

Status
Not open for further replies.

pajakleon

Programmer
May 17, 2005
4
PL
Hi

I have following problem. When I submit a form(action= sendMessage.do) from site generated in writeMessage.do?id=1 action and validate method find errors it forwards to writeMessage.do I need to forward to writeMessage.do?id=1

<action path="/sendMessage"
type="SendMessageAction"
name="writeMessageForm"
scope="request"
validate="true"
input="/writeMessage.do">
<forward name="ok" path="/info.jsp"/>
</action>
I need something like input="/writeMessage.do?id=xx" , but xx will be changing in runtime. How to solve that problem?
 
I beleive when forwarded to writeMessage.do, it is still within the same request scope, therefore the "id" parameter value should still available, and can be accessed via request.getParameter("id"). Isn't it?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top