Thanks a lot to all who responded! So i tried using html-el using the syntax Rick suggested:
<html-el:hidden property="contentId" value="${contentId}"/> The resulting html contains: <input type="hidden" name="contentId" value="${contentId}"> This are the tagligs i am importing on this page: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> What am i doing wrong? Thanks a lot, James --- Rick Reumann <[EMAIL PROTECTED]> wrote: > 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] > > __________________________________ 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]