Your table's checkboxes, rows and columns are selected in runtime on client, while JSP tag is processed on server.
You can do what is called "partial submit", that is to submit a form each time you click on checkbox. This way your application will know current selection and will be able to stick these selections into a link. If you want to do so, you will need to stick additional parameter into the link to distinguish partial submit from final submit. You can pass a map of parameters to a link, google for "struts html:link map". Michael. On 6/27/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
I was thinking to use the attributes: paramId, paramName, paramProperty in my <html-el:link action="....." /> tag. But I do not know how to pass more than one set of them. --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > I can think of those: > > 1) Use Javascript in link's "onclick" event to > collect form data. > 2) Use regular submit button, use CSS to display it > as a link. > > On 6/27/06, Caroline Jen <[EMAIL PROTECTED]> > wrote: > > I am working on a JSP written in JSTL and html-el > > tags. The JSP is displayed fine. > > > > This JSP has a table. Each row of the table has a > > checkbox. Clients may select any number of the > > checkboxes and click on a link to invoke a Struts > > action. > > > > I would like to pass the checkbox and every column > of > > each row when the "link" is clicked. What is the > > proper way of doing that? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]