File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:form tag action - configurable" Watch "html:form tag action - configurable" New topic

html:form tag action - configurable

Mark Manns

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/" or action="/internal/"). 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/" 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.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33127

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: html:form tag action - configurable
It's not a secret anymore!