Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Struts 1.1 ApplicationResources.properties

Yariel Ramos Moreno

2006-03-10


Hi:

I have a LookupDispatchAction in my application. In the JSP mapped to this action, I need 2 submit buttons with the same name (Search) but with differents funtionalities. In my ApplicationResource.properties file I have defined 2 diferent properties with the same value:

search.go=Search
search.advRes=Seach

But when I execute the web application, and I press any of those buttons, it always map to the same results page... always is desplayed the page asociated to search.advRes.

If I change the value of one the properties, it work fine.

How do I make this possible? Can I have 2 different properties with the same value or not?

Thands in advance.
©2008 junlu.com - Jax Systems, LLC, U.S.A.