struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as as <sam_str...@yahoo.com>
Subject Re: html:form
Date Mon, 19 Apr 2004 14:34:33 GMT
wonderful..
i guess two submits are the culrpits here then...
then in my second form, how do i implement my fucntionality (wher i want to display a table-
but clicking on the left most element in the table must take it to another page----using javascript????
please advise..
Thanks!

Christian Bollmeyer <java@christianbollmeyer.de> wrote:
On Sunday 18 April 2004 16:30, as as wrote:

Hi,

>Thanks for the reply. I am submitting both the forsm...

Probably, but where?

>so does only one submitted form end up in the request?

Yes.

>Here is my code briefly:
 
> > type="com.PrincipalForm" >   
>  
>     
>       ID #:
>     
>     
>     
>     
>     
>  
>   
> 

This form seems to be more or less ok. Don't know
why you chose over here, but
well.

> > type="com.TeachersForm">   > name="teachers" property="teacher"> 
> 

Now check this part:

> 
>             
>             
>    " property="last" />
>    

Looks pretty mangled to me; wonder if this compiles
at all. IIRC you mentioned complaints about missing
getters. This part most certainly is the culprit.

> 
> 
> 
> 
> 
> 

You can have multiple forms in a page, but only one
of them can be submitted at a time. Therefore, one
usually provides an with each form
declaration. You can achieve the same with JavaScript,
which you probably do here, but if you say something

document.forms[0].submit();
document.forms[1].submit();

the second line won't be executed anymore, for the
browser has already started a new request.

HTH,
-- Chris. 

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

		
---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message