File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes The action attribute of the form tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "The action attribute of the form tag" Watch "The action attribute of the form tag" New topic

The action attribute of the form tag

Doshi Milan
Ranch Hand

Joined: May 29, 2001
Posts: 112
Hello friends ,
I was going through some code on the site and I came across a form tag which was like:
<form .... action ="/Resources" ...>
I do not understand what does action ="/Resources" mean !
Had it been Resources.html \Resources.jsp ..etc it waould be clear but then what does the server interpret this as?
This was for the WebLogic server(that should not matter anyway). Any guidance will be appreciated
Thanks in advance,
Milan Doshi
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Is could be a call to a Servlet

Regards, Rene Larsen
Dropbox Invite
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
in a jsp/servlets site it could mean anything.. since any URL can be aliased to a givn resource, it could be translated by the server as
Servlet/ResourceServlet or even an image although these dont make that much sense. Remember that the web.xml file allows you to define custom translations between a URL and what resource ultimately gets returned.

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
subject: The action attribute of the form tag
It's not a secret anymore!