This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Dynamic Submit Buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Dynamic Submit Buttons

Naveen Chunduru
Greenhorn

Joined: Dec 13, 2005
Posts: 6
I am displaying a dynamic set of labels and corresponding submit buttons on my JSP.

The corresponding code is as follows:

<c:forEach items="${CDActionForm.caseCollection}" var="cStatusActionForm">

${cStatusActionForm.caseNumber}

<html:submit property="submitButtonAction" styleId="submitButtonAction" styleClass="formButton">
<bean:message key="<%=Constants.VIEW_BUTTON_KEY%>" />
</html:submit>

</c:forEach>

All the submit buttons take me to a same action method in the Action class.
In the action method I want to know the label value corresponding to the button which generated the event. How do I do that?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60789
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Submit Buttons
 
Similar Threads
Multiple Submit Buttons?
How to send multiple actions to Action class after disabling JavaScript
Dynamic Submit Buttons
LookUpDispatchAction
multiple actions for a single form without using javascript