aspose file tools*
The moose likes Struts and the fly likes html:form tag action - configurable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:form tag action - configurable" Watch "html:form tag action - configurable" New topic
Author

html:form tag action - configurable

Mark Manns
Greenhorn

Joined: Jul 06, 2006
Posts: 14
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

Joined: May 26, 2003
Posts: 30764
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:form tag action - configurable