File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieve the Form action name