On Wed, 22 Jan 2003, Ben Starr wrote:

> Date: Wed, 22 Jan 2003 12:16:48 +1000
> From: Ben Starr <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Tag to print value of a parameter?
>
> Is there a tag to print the value of a parameter in Struts 1.1? I know you
> can base logic conditions on the value of a parameter and print values from
> beans but I can't find a way to print the value of a parameter to the page.
> Obviously it is just a short scriptlet such as:
>
> <%= request.getParameter("name") %>
>
> but it would be nicer to do it with a struts tag. If such a tag is not
> available then I suggest it should be added!
>

You can do it indirectly, by using <bean:parameter> and then <bean:write>.
This also lets you decide what to do about multiple values for the same
parameter name.

> Thanks,
>
> Ben Starr
>

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to