Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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)
JSP to servlet
Tomcat,Eclipse and form data
Servlets inJSP
help with module level struts config