struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. Lotfi" <>
Subject Re: click first table rows, the rows of second table change ??
Date Fri, 11 Aug 2006 14:59:50 GMT
Thank you Monkeyden,
  1) That exactly what I want, but I did not understand :
  > Expects a table1RowNum parameter (from clicking on one of the rows 
> in table1
  I have never used AJAX, is there any example on how to do it with ajax ?
  thank you,

Monkeyden <> wrote:
  If I understand you correctly, here is how it might look:

Collection table1Data (retrieved from persistence on the first request
of the Action)
Collection table2Data (empty on first request)

Loads table1 data
Expects a table1RowNum parameter (from clicking on one of the rows in
table1) but can run without it for the initial request
If param exists, load table2 data and forward to your.jsp

(or whatever test you want)
[print table 2 data]

This also looks like a prime candidate for AJAX.

On 8/11/06, A. Lotfi wrote:

> I am trying to have in my jsp page two tables :
> First table : Select the package :
> row1
> row2
> row3
> ...
> row10
> each time the user select a row, the rows in the second table change :
> for example if the user click in row2 the second table will be like this :
> Second Table : Select the page to print :
> row2Page1
> row2Page2
> ...
> row2Page6
> Could you please give me an idea on how to do it, thanks your help is
> appreciated.
> ---------------------------------
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail Beta.

Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message