You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Barry Volpe <st...@childrencare.com> on 2003/10/25 00:17:13 UTC
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
Re:
Posted by Barry Volpe <st...@childrencare.com>.
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" <tz...@sparco.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re:
Posted by Yong Tze Chi <tz...@sparco.com>.
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org