The issue you're referring to is that you can't nest custom tags inside custom tags. The HTML "input" tag is not a custom tag, it's not processed by the server in any way. Also note that if you just use the "html:hidden" tag from Struts-EL, you can do the same thing in less code by using an EL expression for the attribute value (instead of an embedded "c:out" element).
-----Original Message----- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:39 PM To: Struts Users Mailing List Subject: Re: <input type="hidden" works with struts tags? Works thanks... I didn't think the JSTL (c:out) would work in the html tag because some of the html:el tags do not work with JSTL(<cout>) Barry ----- Original Message ----- From: "Yong Tze Chi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, October 24, 2003 3:30 PM Subject: Re: <input type="hidden" works with struts tags? > How about this? > > <input type="hidden" name="type" value="<c:out value="${param.type}" > />"> > > I'm still new to JSTL, Struts and all... so if I'm wrong, please correct... > > Yong-Tze > > Barry Volpe wrote: > > >I am able to initialize a standard html hidden tag in a struts tag. > > > ><html-el:form action="myaction"> > > > ><input type="hidden" name="type" value="type1"> > > > ></html-el:form> > > > >Was wondering if all standard html tags can be used in struts html > >form tags? > > > >I am using a request parameter > > > >myrequest.jsp?type=type1 > > > >to do the following: > > > ><c:if test="${param.type eq 'type1'}"> > > <input type="hidden" name="type" value="type1"> > > </c:if> > > > ><c:if test="${param.type eq 'type2'}"> > > <input type="hidden" name="type" value="type2"> > > </c:if> > > > ><c:if test="${param.type eq 'type3'}"> > > <input type="hidden" name="type" value="type3"> > > </c:if> > > > >I want to avoid using an action to initialize form values. > > > >Any suggestions on doing this differently? > > > >Thanks, > >Barry > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]