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]



Reply via email to