struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Tag to print value of a parameter?
Date Wed, 22 Jan 2003 03:17:33 GMT


On Wed, 22 Jan 2003, Ben Starr wrote:

> Date: Wed, 22 Jan 2003 12:16:48 +1000
> From: Ben Starr <b.starr@qut.edu.au>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> 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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message