struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul McCulloch <>
Subject RE: about dependent lists
Date Wed, 23 Jul 2003 13:30:19 GMT
In the past (asp) I have done this within in a single server response. I
built client-side javascript arrays of options for each option in the first
list, and populated the second list from the appropriate array.

Obviously this is only going to work for some data sets - at some point the
user experience is going to suffer due to the time it takes to download the
initial page & for the JS interpreter to populate all the arrays.


-----Original Message-----
From: Edgar Dollin [mailto:Edgar@BLUE-MOOSE.NET]
Sent: 23 July 2003 11:42
To: 'Struts Users Mailing List'
Subject: RE: about dependent lists

This idea works nicely but remember if you have pages of any size the user
experience will suffer.  As an example Bugzilla does it using dynamic
javascript and it still has annoying pauses, a page load would be worse.

Also, you should have an additionaly piece of javascript to put the cursor
back where it was when the page was submitted.


> -----Original Message-----
> From: Amit Kirdatt [] 
> Sent: Tuesday, July 22, 2003 4:24 PM
> To: 'Struts Users Mailing List'
> Subject: RE: about dependent lists
> I am assuming both lists are present on the same page! 
> If so on the first list have a onChange javascript event 
> which calls a function that submits the page. When the page 
> is submitted you get the value the user selected on the first 
> list. Use this value to populate the second list in the form, 
> put the form back into whichever scope you had it and forward 
> the Action control to the same page.
> --Amit
> -----Original Message-----
> From: victor gu []
> Sent: Tuesday, July 22, 2003 1:43 PM
> To:
> Subject: about dependent lists
> Hi, Guys:
> I have two lists, when I select an item from the first
> list, the second list will be populated based on the
> selected item. The results will be got from database
> in action class. The first list will be pre-populated,
> not the second. Here are my questions: do I need
> another action class taking care of selecting part?
> Once I select the item from the first list, I will get
> this item in action class, then get results, how can I
> send them back and populate the second list? Or There
> are other better and easier ways to achieve this?
> thanks,
> victor 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design 
> software
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> This e-mail, including attachments, may include confidential 
> and/or proprietary information, and may be used only by the 
> person or entity to which it is addressed. If the reader of 
> this e-mail is not the intended recipient or his or her 
> authorized agent, the reader is hereby notified that any 
> dissemination, distribution or copying of this e-mail is 
> prohibited. If you have received this e-mail in error, please 
> notify the sender by replying to this message and delete this 
> e-mail immediately.

To unsubscribe, e-mail:
For additional commands, e-mail:

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not the addressee
indicated in this message (or responsible for delivery of the message to such person), you
may not copy or deliver this message to anyone. In such case, you should destroy this message,
and notify us immediately. If you or your employer does not consent to Internet email messages
of this kind, please advise us immediately. Opinions, conclusions and other information expressed
in this message are not given or endorsed by my Company or employer unless otherwise indicated
by an authorised representative independent of this message.
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via
electronic mail attachments we cannot guarantee that attachments do not contain computer virus
code.  You are therefore strongly advised to undertake anti virus checks prior to accessing
the attachment to this electronic mail.  Axios Systems Ltd grants no warranties regarding
performance use or quality of any attachment and undertakes no liability for loss or damage
howsoever caused.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message