• Post Reply Bookmark Topic Watch Topic
  • New Topic

two actions from one page  RSS feed

 
Manoj John
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;

In my jsp page there is one page with form on submission of the page one action is working for inserting the data.(say /insert.do)
now facing the problem is that i've to invoke one more action when
changing the option in the <html:select.
it is needed bz now i am changing the states with respect to country using javascript. but i need it to take from database.
any suggestion or sample code is appreciated...
 
Atul Prabhu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can use a javascript on click event of <html:select>

document.forms[0].action = "/someother.do";


Regards
Atul
 
Manoj John
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you athul
i tried it and got....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!