Multiple forms in struts

Hi,

I have a simple Struts app that's connected to a DB. I can search for an "employee" and know I want to add the functionality to add an employee, so I have two add buttons in a JSP page. When I come to the Action/controller page, how can I know which button that has been pressed, i.e, which form that is populated? Can I set a variable in the JSP page?

Thanks,

Mattias

[398 byte] By [javaExceptiona] at [2007-11-27 9:36:42]
# 1
The name of the button is available as request parameter.
BalusCa at 2007-7-12 23:06:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Can you please give me an example?Thanks,Matt
javaExceptiona at 2007-7-12 23:06:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...