You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hookom, Jacob" <Ja...@redline.mckhboc.com> on 2003/06/23 18:00:52 UTC

RE: Passing Information with forward

try a bean:write into a normal hidden field, you can intermix <html:* and
<form,<input, etc tags on your pages.

-----Original Message-----
From: Matt E [mailto:mgeusenet@yahoo.com]
Sent: Monday, June 23, 2003 11:03 AM
To: struts-user@jakarta.apache.org
Subject: Passing Information with forward


Hello All.  I'm running up a problem and I'm not sure
how to solve it.

In my application, there is an action called
PLAReview.  An e-mail is sent to someone telling them
to click on a link that looks like this:

http://www.whatever.com/PLAReview.do?id=1

The Action PLAReview uses that ID number to pull some
data out of a database, push it into a DTO, put the
DTO in the request scope, and then calls
mapping.findForward("Success"); which forwards to
another jsp page.

This page prints out all the data from the DTO, and
also has a few form feilds that the user needs to
complete, and then submit.

I'm rendering a <html:hidden> object on this second
page, that will hold the id of this request (the same
ID value from above), but I don't know how to get it
there.

I tried doing:

<html:hidden property="id"/>

But that didn't seem to work because I think it wants
to get the ID property from the ActionForm object tied
to the form, which doesn't have the correct value.

I need a way to get that value from the first URL, and
also make sure that if validation fails and the form
is redisplayed, the value for ID is pulled from the
ActionForm (since I think the initial id from the
first URL will be lost).

Does this make any sense?

Cheers! 

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org