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




Reply via email to