File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:form tag action - configurable

 
Mark Manns
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone

I want to control the code that shows up in the html:form tag action property in the jsp (i.e. action="/internal/save.do" or action="/internal/update.do"). I'm using the same jsp and ActionForm - the only thing different is the controller selection. I can render the page if I put something like "nextAction" "/internal/save.do" onto the request and then use a scriptlet in the jsp --- but I don't like this approach.

Does anyone know how to address this problem?
Any help greatly appreciated.

Mark
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
This probably isn't the best way, but we sometimes use JavaScript to change the value of the action depending on what the user has clicked.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic