Hello All, I *really* appreciate your help. Because of a hard-pressing work deadline, i actually gave up on getting that to work using JSTL and ended up using the ugly <input type="hidden" name="contentId" value="<%=request.getAttribute("contentId")%>"/> instead.
I'll definitely come back to JSTL at a later time since i consider that to be a proper way of doing this sort of things. Robert, if ${contentId} is available as an attribute (which it was) and not as a parameter, i would expect it to produce null or something instead of literally printing out ${contentId} string... Rick, i tried creating a var in the jsp and the result would still be the same: the value of the hidden property was printed out as {$myVar}. And, if i do c:out in the begging of the jsp, i do get an actual int value printed. weird... i definitely need to spend more time doing my homework to understand how it works... All the best, James --- Rick Reumann <[EMAIL PROTECTED]> wrote: > klute wrote: > > > Yes, the struts-el.jar is in WEB-INF/lib > > > > --- Rick Reumann <[EMAIL PROTECTED]> wrote: > > > >>klute wrote: > >> > >> > >>><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? > > Not sure. If you have > - struts-el jar included > - proper definition of the tld in web.xml > - proper declaration for the tld on top of the page > > then using it as: > <html-el:hidden property="contentId" > value="${contentId}"/> > should be fine. > > The only thing I'm still concerned about and maybe > somehow it's related > is that contentId has to be a property of your > ActionForm or else Struts > would complain that it couldn't find the property > 'contentId' Are you > maybe creating the "contentId" var dynamically first > in the JSP page and > then trying to set as above? "Usually" you don't > need to do like you are > doing (setting the value) since that value can be > set before you get to > the page and thus just doing <html:hidden > property="contentId" would be > fine. > > What does <c:out value="${contentId}"/> produce on > the page (or in > source) when placed right before the html-el hidden > tag? > > -- > Rick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]