struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Jacobsen" <jerome.jacob...@gentootech.com>
Subject RE: Tag to print value of a parameter?
Date Wed, 22 Jan 2003 14:31:27 GMT
If you have a JSP 1.2 container then you can use JSTL like this:

<c:out value='${param["name"]}'/>

param is an implicit object in JSTL (it is a Map).

> -----Original Message-----
> From: Ben Starr [mailto:b.starr@qut.edu.au]
> Sent: Tuesday, January 21, 2003 9:17 PM
> 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!
>
> Thanks,
>
> Ben Starr
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
>
>


--
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