James

Do you include the HTML tag library within the jsp page?  It needs to go 
at the top and look like this:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

Cheers

Christopher Marsh-Bourdon
Pyplia Limited





klute <[EMAIL PROTECTED]>
23/06/2004 18:25
Please respond to "Struts Users Mailing List"

 
        To:     Struts Users Mailing List <[EMAIL PROTECTED]>
        cc: 
        Subject:        Setting html:hidden property using JSTL


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?

I did check that <c:out value="${contentId}"/> returns
a valid value so my confusion is just passing it as a
value to the html:hidden property.

Any help is greatly appreciated.
James


 
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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






-----------------------------------------
The information in this e-mail is confidential. It is intended solely for the 
addressee. If you are not the intended recipient please notify the sender immediately 
and delete this message. Any review, dissemination, distribution, copying or other use 
of this communication or the information in it is strictly prohibited.

Reply via email to