Re: struts 1.2 html:select and submit button

2011-07-06 Thread hijayanth
Hi, Can you please let how did you address your requirement of having multiple action classes? Thanks and regards, jayanth -- View this message in context: http://struts.1045723.n5.nabble.com/struts-1-2-html-select-and-submit-button-tp3477760p4558693.html Sent from the Struts - User mailing li

Re: struts 1.2 html:select and submit button

2008-03-18 Thread Antonio Petrelli
2008/3/18, Sonu S <[EMAIL PROTECTED]>: > 1) there is one submit button on that page and one action is associated with > that submit button. i can call the associated action class once the user > finish the form and click the submit button. When user select from list i > need to call another act

Re: struts 1.2 html:select and submit button

2008-03-17 Thread Sudhan Maharjan
You can simply call a struts action through AJAX. A little bit of AJAX can help to do your task. If you know AJAX, you can call struts action while sending request as req.open("GET", someaction.do, true); On Tue, Mar 18, 2008 at 9:20 AM, Sonu S <[EMAIL PROTECTED]> wrote: > HI, > > I am using st

struts 1.2 html:select and submit button

2008-03-17 Thread Sonu S
HI, I am using struts 1.2 in my web application. I have to display one list list will be build dynamically. User can select any option. base on the user's selection page will be refreshed (need to hit the database and display information in other fields on same page.) I need to know two th

Re: html:select and submit

2005-12-09 Thread Frank W. Zammetti
Rahul Akolkar wrote: In a multiple , selectName.selectedIndex will always be the index of the *first* selection, if there are one or more (or -1 if there are none). Cool, that's what I thought but wasn't sure, you saved me from having to test it :) I think Mike has the answer I wa about to g

Re: html:select and submit

2005-12-09 Thread Mike Darretta
Thank you, Rahul. This *is* the problem. Much regards (and much better sleep this weekend!)... Mike Rahul Akolkar wrote: On 12/9/05, Mike Darretta <[EMAIL PROTECTED]> wrote: I thought I had licked this problem - but it only works with Firefox! I have an tag that, when a user selects an opt

Re: html:select and submit

2005-12-09 Thread Rahul Akolkar
On 12/9/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > What are you actually trying to send? The selected value or the index > of the selected item? I also note you have multiple="true"... so you > expect that more than one can be selected? I'm not sure if that has a > bearing on the selecte

Re: html:select and submit

2005-12-09 Thread Rahul Akolkar
On 12/9/05, Mike Darretta <[EMAIL PROTECTED]> wrote: > I thought I had licked this problem - but it only works with Firefox! > > I have an tag that, when a user selects an option, a > submit() is forced through a javascript call. > > The JSP code is: > > ... > onclick="handleCl

Re: html:select and submit

2005-12-09 Thread Mike Darretta
You're right - the multiple="true" was wrong, but that was essentially ignored since I am capturing the "onclick" event. What I want to send is the index to use in extracting the appropriate info from the underlying collection. Anyhow, what I am wanting to do is capture the selected index, the

Re: html:select and submit

2005-12-09 Thread Frank W. Zammetti
What are you actually trying to send? The selected value or the index of the selected item? I also note you have multiple="true"... so you expect that more than one can be selected? I'm not sure if that has a bearing on the selectedIndex (I could see where it might), and even if it does, the

html:select and submit

2005-12-09 Thread Mike Darretta
I thought I had licked this problem - but it only works with Firefox! I have an tag that, when a user selects an option, a submit() is forced through a javascript call. The JSP code is: The javascript code: function handleClick(obj, prefix) { var F_Obj = obj.form; index = F_Obj.sele

RE: Html:link/html:select and submit

2004-05-14 Thread Heligon Sandra
Do you confirm that the submit erase all parameters ? I will replace the html:link by a button, but I have the problem for the html:select onchange. I should use a submit to display my form again. Is there another way ? I tried to use a JavaScript but the submit erase parameters. At the end of t