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]