You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Kennedy <ji...@gigaheads.com> on 2003/10/31 17:19:43 UTC
tag question
Here's my standard html form tag:
<form name="main" action="doit" method="post">
I need to be able to "name" my form in my application. How do I do that
with the "el" form tag. It is not this:
<html-el:form name="main" action="/doit.do" method="post" scope="request">
name has another meaning for this tag. what is the equivalent for name in a
standard HTML form tag?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: tag question
Posted by Jim Kennedy <ji...@gigaheads.com>.
I figured it out. It's actually set to the name of the form-bean. And I
can live with that.
Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-----------------------------------------------------
----- Original Message -----
From: "Ruth, Brice" <br...@fiskars.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, October 31, 2003 11:22 AM
Subject: Re: <html-el:form> tag question
> The "name" attribute on the HTML generated by <html:form> is
> automatically set to the name of the action that will be receiving the
> form input, if I'm not mistaken. So, in your case, it would be named
> "doit", if I'm not mistaken. This, I believe, is done to support
> validation through javascript.
>
> Jim Kennedy wrote:
>
> >Here's my standard html form tag:
> >
> ><form name="main" action="doit" method="post">
> >
> >
> >
> >I need to be able to "name" my form in my application. How do I do that
> >with the "el" form tag. It is not this:
> >
> >
> >
> ><html-el:form name="main" action="/doit.do" method="post"
scope="request">
> >
> >
> >
> >name has another meaning for this tag. what is the equivalent for name
in a
> >standard HTML form tag?
> >
> >
> >
> >thanks
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
>
> --
> Brice D. Ruth
> Sr. IT Analyst
> Fiskars Brands, Inc.
>
>
>
> ---------------------------------------------------------------------
> 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: tag question
Posted by "Ruth, Brice" <br...@fiskars.com>.
The "name" attribute on the HTML generated by <html:form> is
automatically set to the name of the action that will be receiving the
form input, if I'm not mistaken. So, in your case, it would be named
"doit", if I'm not mistaken. This, I believe, is done to support
validation through javascript.
Jim Kennedy wrote:
>Here's my standard html form tag:
>
><form name="main" action="doit" method="post">
>
>
>
>I need to be able to "name" my form in my application. How do I do that
>with the "el" form tag. It is not this:
>
>
>
><html-el:form name="main" action="/doit.do" method="post" scope="request">
>
>
>
>name has another meaning for this tag. what is the equivalent for name in a
>standard HTML form tag?
>
>
>
>thanks
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org