my dog learned polymorphism
The moose likes JSP and the fly likes Retrieve the Form action name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Retrieve the Form action name" Watch "Retrieve the Form action name" New topic
Author

Retrieve the Form action name

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
I want to retrieve the form action name in the servlet.

eg
<form name=form1 action="hello">
</form>


is it possible to retrieve the action name (hello) in the servlet
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Since the action is the address of the resource to which the browser will post, you can retrieve it with request.getRequestURL or request.getRequestURI.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Retrieve the Form action name
 
jQuery in Action, 3rd edition