This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Error: creating bean of class (HELP THE NEWBE)
Tomcat,Eclipse and form data
Servlets inJSP
help with module level struts config
JSP to servlet