You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohammed <de...@panamp.de> on 2001/11/23 10:16:51 UTC
Action and Jsp / passing Parameters
Hello everybody,
In my web application I decided not to use frames and so I am using a table
in a jsp file. my question is as follow:
in the jsp file I want to know which action forwarded to this jsp file so
that I will accordingly run the right code? Is der a way I could pass a
Parameter from my Action class to the jsp file I am forwarding to ? Actually
I want to include the corresponding jsp file into my main jsp file
according to where the forward came from.
Thanks for any Help
Mohammed
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Action and Jsp / passing Parameters
Posted by Jin Bal <ji...@hotmail.com>.
In you action class you can set an object into the request using
request.setAttribute(). This object could be of a generic type that you
could examine in the jsp using a jsp:usebean tag to extract the object from
the request. The action class always forwards the request object it has
back to the JSP so the object that you set in it will exist in the JSP that
you have forwarded to
HTH
Jin
----- Original Message -----
From: "Mohammed" <de...@panamp.de>
To: <st...@jakarta.apache.org>
Sent: Friday, November 23, 2001 9:16 AM
Subject: Action and Jsp / passing Parameters
> Hello everybody,
>
> In my web application I decided not to use frames and so I am using a
table
> in a jsp file. my question is as follow:
>
> in the jsp file I want to know which action forwarded to this jsp file so
> that I will accordingly run the right code? Is der a way I could pass a
> Parameter from my Action class to the jsp file I am forwarding to ?
Actually
> I want to include the corresponding jsp file into my main jsp file
> according to where the forward came from.
>
> Thanks for any Help
>
> Mohammed
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>