File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drop down list action

 
Satish Kulkarni
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form with the drop down list of itmes. When a item is selected I want the form to be populated with a certain data.
For example
From a list of user, I select a a user and the user information is loaded. I can edit the user information and submit the form.
How would I achieve this?
-Satish
 
Peter Storch
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen this with the help of javascript.
You can use the onChange attribute of your select tag to call a javascript which submits the form, so that it can be populated by an appropriet action class.
The thing you have to recognize is whether it's the final submit of the whole form, of if it's only a partial submit to fill out some other fields. This can be solved by setting a hidden field to a particular value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic