> I want to be able to embed a form in several pages whose action is is to
> update a property on a session bean then bounce back to the page the
> form was embedded into. 

I have sort of the same issue when I send people off to pick from a list of
names that match a free-form text name they've typed in.  I use the same
resolution action & form for all of my pages, and I need to go back where I
came from.

What I do is have the first page store a request attribute called
"returnTo".  Then I pick up that value as the action of the form:

   <form action="<bean:write name="returnTo"/>" method="POST">

where 'returnTo' is set to something like 'editContact.do'.

Not very elegant, but it works. :)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to