Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-14 Thread Oleg Konovalov
That worked for me: <% String str="form.action='action.do?command=notify&rowId="; %> onclick="<%= str%>'" /> And in Action: String rowId = request.getParameter("rowId"); Thank you all, Oleg. On 8/13/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Oleg Konovalov wrote: > >> make each butto

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-13 Thread Frank W. Zammetti
Oleg Konovalov wrote: make each button on the form a submit button I can't do it, because button has to have image, so I use Will that work ? I believe so... best way to be sure would be to try it :) ... but I don't see why it wouldn't. Also, are you sure thisthis.form.rowId.value='${

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-13 Thread Oleg Konovalov
>make each button on the form a submit button I can't do it, because button has to have image, so I use Will that work ? Also, are you sure thisthis.form.rowId.value='${list.rowId}'; will work together with myform.action='action.do?command=notify' I think, Javascript will get screwed up -

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-13 Thread Frank W. Zammetti
Oleg Konovalov wrote: No, I am not using any AJAX. On Submit it supposed to process that row, go to DB and refresh the whole page, so to come back on the same page. Also, my form is declared as , so onClick I use "form.action='action.do?command=notify'", I can't get rid of it, but it doesn't wa

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-13 Thread Oleg Konovalov
No, I am not using any AJAX. On Submit it supposed to process that row, go to DB and refresh the whole page, so to come back on the same page. Also, my form is declared as , so onClick I use "form.action='action.do?command=notify'", I can't get rid of it, but it doesn't want to coexist with any J

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-12 Thread Frank W. Zammetti
Oleg Konovalov wrote: I have a bunch of rows [ArrayList of ValueObject Classes], and a button corresponding to each row. I populate the data from each row in forEach loop. User is supposed to click on one of these buttons [selecting one row to process], and onClick event I need to pass the rowId

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-12 Thread Dave Newton
--- Oleg Konovalov <[EMAIL PROTECTED]> wrote: > As I mentioned in the original e-mail: > > Have hidden field: > Yeah, but... that's a form value, not a JavaScript variable. The "onclick" attribute expects valid JavaScript. > I have a bunch of rows and a button corresponding to > each row. If

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-12 Thread Oleg Konovalov
As I mentioned in the original e-mail: Have hidden field: I have a bunch of rows [ArrayList of ValueObject Classes], and a button corresponding to each row. I populate the data from each row in forEach loop. User is supposed to click on one of these buttons [selecting one row to process], and on

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-11 Thread Frank W. Zammetti
What is rowId? That's not a standard attribute of the tag, hence the error makes sense I think, assuming it's being interpreted equivalent to this.rowId... also, value doesn't have any context here, I assume you mean to do this.value (which it may be interpreted as anyway), but maybe not... w

Re: [OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-11 Thread Oleg Konovalov
Dave, What am I doing wrong in that Javascript ? Honestly, I don't see it. Please help ! Thank you, Oleg. On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Oleg Konovalov <[EMAIL PROTECTED]> wrote: > > > As of now I am getting Javascript error "Object > > doesn't support this

[OT] Re: Passing value from Struts tag in JSP to Action class

2007-08-10 Thread Dave Newton
--- Oleg Konovalov <[EMAIL PROTECTED]> wrote: > As of now I am getting Javascript error "Object > doesn't support this property or method", complaining > about *rowId=value;* The "onclick" attribute must have valid JavaScript. d. ___

Passing value from Struts tag in JSP to Action class

2007-08-10 Thread Oleg Konovalov
Hi, I am populating JSP page with rows retrieved from the database and represented as a List of Beans in forEach loop: ... Completed   Pending