klute wrote:

Hi All,

I just started experimenting with jstl and i'd like to
set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request.
Basically, i'd like to do something like this:


<html:hidden property="contentId" value="<c:out
value="${contentId}"/>"/>
Which does not work. Should i be using EL syntax
instead? And what would the correct syntax be?

Use the html-el tag instead of the html tag. Then you can do:

<html-el:hidden property="contentId" value="${contentId}"/>

Much cleaner.

Although remember it might even be easier/cleaner to simply make sure contentId is in your ActionForm .. then you can just do...

<html:hidden property="contentId"/> and it'll set the value for you.

--
Rick

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



Reply via email to