You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thomas Ramapuram <th...@gmail.com> on 2008/02/07 13:45:19 UTC

Is Multiple Forms(s:form) in one Jsp possible?

Hi,
I just wanted to know if it is possible to have multiple s:form in one
jsp.  Each of the forms submit to a diffrent action.

The problem I faced is that.  If I place multiple forms in one jsp.  The
initials forms closing tags are commented out when the tag is rendered.
Is this expected behaviour or is it a bug.

Thanks in advance.
Regards,
Thomas Ramapuram.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [struts] Is Multiple Forms(s:form) in one Jsp possible?

Posted by Dale Newfield <Da...@Newfield.org>.
Thomas Ramapuram wrote:
> I just wanted to know if it is possible to have multiple s:form in one
> jsp.  Each of the forms submit to a diffrent action.

Just make sure they're not nested inside one another, and that no two 
elements on the rendered page have the same id attribute.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Is Multiple Forms(s:form) in one Jsp possible?

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Dave Newton wrote:
> --- Jeromy Evans <je...@blueskyminds.com.au> wrote:
>   
>> The commenting effect is something one of the browsers does when viewing 
>> invalid html (forget which browser). It comments out the html for nodes 
>> that were impossible to include in the DOM.  I've seen it when forms are 
>> accidentally nested as the OP must have done.
>>     
>
> Oh, interesting; I've never seen that.
>
> This, of course, leads to the obvious conclusion that my HTML is always
> perfect.
>
> On a related note, watch for my auction of my bridge on e-bay Real Soon Now
> (tm).
>
> Dave
>   
lol :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Is Multiple Forms(s:form) in one Jsp possible?

Posted by Dave Newton <ne...@yahoo.com>.
--- Jeromy Evans <je...@blueskyminds.com.au> wrote:
> The commenting effect is something one of the browsers does when viewing 
> invalid html (forget which browser). It comments out the html for nodes 
> that were impossible to include in the DOM.  I've seen it when forms are 
> accidentally nested as the OP must have done.

Oh, interesting; I've never seen that.

This, of course, leads to the obvious conclusion that my HTML is always
perfect.

On a related note, watch for my auction of my bridge on e-bay Real Soon Now
(tm).

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Is Multiple Forms(s:form) in one Jsp possible?

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Dave Newton wrote:
> --- Thomas Ramapuram <th...@gmail.com> wrote:
>   
>> I just wanted to know if it is possible to have multiple s:form in one
>> jsp.  Each of the forms submit to a diffrent action.
>>
>> The problem I faced is that.  If I place multiple forms in one jsp.  The
>> initials forms closing tags are commented out when the tag is rendered.
>> Is this expected behaviour or is it a bug.
>>     
>
> I can't reproduce this; I have many pages with multiple forms.
>
> Including a source code snippet might be helpful.
>
> Dave
>
>
>   
The commenting effect is something one of the browsers does when viewing 
invalid html (forget which browser). It comments out the html for nodes 
that were impossible to include in the DOM.  I've seen it when forms are 
accidentally nested as the OP must have done.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Is Multiple Forms(s:form) in one Jsp possible?

Posted by Dave Newton <ne...@yahoo.com>.
--- Thomas Ramapuram <th...@gmail.com> wrote:
> I just wanted to know if it is possible to have multiple s:form in one
> jsp.  Each of the forms submit to a diffrent action.
> 
> The problem I faced is that.  If I place multiple forms in one jsp.  The
> initials forms closing tags are commented out when the tag is rendered.
> Is this expected behaviour or is it a bug.

I can't reproduce this; I have many pages with multiple forms.

Including a source code snippet might be helpful.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org