wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "The action attribute of the form tag" Watch "The action attribute of the form tag" New topic
Author

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,
Regards,
Milan Doshi
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Is could be a call to a Servlet
/Rene


Regards, Rene Larsen
Dropbox Invite
chanoch wiggers
Author
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
resource.html
resource.jsp
some.jsp
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="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
jQuery in Action, 2nd edition
 
subject: The action attribute of the form tag
 
Similar Threads
%@include file= % ?
Form action and server side
What is action="/Resources"
Servlet URL Pattern problem
Submitting a form