Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 <s:submit action > and javascript help  RSS feed

Mars Mondal
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helleo everyone,
I have a webpage with three different search options. Each option has a radio button clicking on which enables the text fields and buttons in that option with the help of java script. The first options allows to search by PIN. Second one by SSN, DOB and DOBRange, And 3rd one by various combinations of the name. The javascript I use to do this is given below:

This works fine but the problem is we have 3 submit buttons with differnt actions using the normal <s:submit> works fine but when I use <s:submit action="Search1"> the javascript does not render. Here is an example of my jsp code:

Similarly for the other options. This does not seem to work. However if I use the same code without specifying an action it works.

Any idea what I need to change in my javascript or jsp to get this to work?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!