04-19-05 11:11 PM
Hi,
Please note that these are educated guesses as to how you might be
able to accomplish the 2 tasks. You can either try some of these
suggestions or perhaps wait for a more experienced developer to post a
response.
I am not sure if this would work but you should be able to save the
object to the session from within the JSP and then access that object
within the controller command. If you are calling the controller
command from within a JSP scriptlet, by using the
ControllerCommandInvokerDataBean, then you should be able to add the
object to the request properties that you set for the command.
If a jsp is including another jsp then should be able to just add the
object to the request before including the other jsp. Then within the
included JSP you should be able to pull the object off of the request.
If by "from jsp to jsp" you mean an html link in the content generated
by 1 jsp that points to another jsp then I am not sure how you would
do this other than by saving the object to the session in jsp 1 and
then retrieving it from the session in jsp 2.
Hopefully this is somewhat helpful. Perhaps one of the more
experienced readers of this newsgroup might be able to provide some
better guidance.
Good Luck,
John
On Tue, 19 Apr 2005 10:52:12 EDT, <scheng@sharedvision.com> wrote:
>How do I pass an object from jsp to a controller command or from jsp to jsp
>Thanks
[ Post a follow-up to this message ]
|