Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve the Form action name  RSS feed

 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!