This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Determining which element caused an event to occur Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Determining which element caused an event to occur" Watch "Determining which element caused an event to occur" New topic
Author

Determining which element caused an event to occur

kanishk dewan
Greenhorn

Joined: Aug 11, 2011
Posts: 9
Hi All,

I have 5 drop downs on a jsp. I have a single action which dynamically changes the contents of the drop downs depending on selection change in one of the drop downs.

The problem is, I want to determine which of the five drop down was changed. I need this info in the action file.

Please advice how to do this.

I dont think I need to provide any existing code for this.
And if I am missing any info please tell.


Thanks
Kanishk
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Use Ajax with Dojo plugin.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
kanishk dewan
Greenhorn

Joined: Aug 11, 2011
Posts: 9
Hi Mohana,

Thanks for a quick reply.

I am using ajax with dojo plugin, but how does it enable me to know which element has caused the event action. I need to know this in my action class.

Thanks
Kanishk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Determining which element caused an event to occur
 
Similar Threads
Dependent dynamic drop downs
creating rows dynamically
Search Appllication
Dynamic page generation
How to pick values from data table....