You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Raquepo <rr...@primeorion.com> on 2003/07/29 13:32:49 UTC
passing parameter to a getter method
help.
how can i pass a parameter to a getter method using
JSTL of Struts-EL?
example
in a java i can get values from my bean using
ArrayList values = mybean.getSampleValues("id01");
now how can i do that in struts/jsp.
using logic-el:iterate or for each.
"Id01" is dynamic it will come from a logic-el:iterate.
any dea how?
thanks a lot
Re: submit a form with html:link
Posted by Sergey Smirnov <si...@eltegra.ru>.
Do not be surprised to receive two requests from browser if you do not use
'return false;' at the end.
"Andrew Geery" <ge...@doc.state.sc.us> wrote in message
news:3F26639C.7040200@doc.state.sc.us...
> I've gotten this to work by using '#' as the target of the href:
> <html:link href="#"
onclick="document.forms[0].submit();">Login</html:link>
>
> See also
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg46693.html
>
> Konstadinis Euaggelos wrote:
>
> >If you are using this way to submit the form then ,
> >
> >you must not have in your form <html:submit> but only <html:button> .
> >so you must submit your form only wiht javasrcript.
> >
> >Hope this help.
> >
> >
> >
> >----- Original Message -----
> >From: "Faisal Shoukat" <FS...@retailexp.com>
> >To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> >Sent: Tuesday, July 29, 2003 2:34 PM
> >Subject: submit a form with html:link
> >
> >
> >
> >
> >>Hi,
> >>
> >>I am trying to submit a form by using a link. I have looked through the
> >>emails already on this and am using the following code from a previous
> >>mail:
> >>
> >><html:link href=""
> >>onclick="javascript:'document.forms[0].submit();return
> >>false;'">Login</html:link>
> >>
> >>however when I click on the link nothing happens? Does anybody know
> >>why?
> >>
> >>Thanks in Advance
> >>Faisal
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: submit a form with html:link
Posted by Andrew Geery <ge...@doc.state.sc.us>.
I've gotten this to work by using '#' as the target of the href:
<html:link href="#" onclick="document.forms[0].submit();">Login</html:link>
See also
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg46693.html
Konstadinis Euaggelos wrote:
>If you are using this way to submit the form then ,
>
>you must not have in your form <html:submit> but only <html:button> .
>so you must submit your form only wiht javasrcript.
>
>Hope this help.
>
>
>
>----- Original Message -----
>From: "Faisal Shoukat" <FS...@retailexp.com>
>To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>Sent: Tuesday, July 29, 2003 2:34 PM
>Subject: submit a form with html:link
>
>
>
>
>>Hi,
>>
>>I am trying to submit a form by using a link. I have looked through the
>>emails already on this and am using the following code from a previous
>>mail:
>>
>><html:link href=""
>>onclick="javascript:'document.forms[0].submit();return
>>false;'">Login</html:link>
>>
>>however when I click on the link nothing happens? Does anybody know
>>why?
>>
>>Thanks in Advance
>>Faisal
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: submit a form with html:link
Posted by Konstadinis Euaggelos <Va...@eurodyn.com>.
If you are using this way to submit the form then ,
you must not have in your form <html:submit> but only <html:button> .
so you must submit your form only wiht javasrcript.
Hope this help.
----- Original Message -----
From: "Faisal Shoukat" <FS...@retailexp.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, July 29, 2003 2:34 PM
Subject: submit a form with html:link
>
> Hi,
>
> I am trying to submit a form by using a link. I have looked through the
> emails already on this and am using the following code from a previous
> mail:
>
> <html:link href=""
> onclick="javascript:'document.forms[0].submit();return
> false;'">Login</html:link>
>
> however when I click on the link nothing happens? Does anybody know
> why?
>
> Thanks in Advance
> Faisal
>
>
> ---------------------------------------------------------------------
> 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
submit a form with html:link
Posted by Faisal Shoukat <FS...@retailexp.com>.
Hi,
I am trying to submit a form by using a link. I have looked through the
emails already on this and am using the following code from a previous
mail:
<html:link href=""
onclick="javascript:'document.forms[0].submit();return
false;'">Login</html:link>
however when I click on the link nothing happens? Does anybody know
why?
Thanks in Advance
Faisal
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org