• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The action attribute of the form tag

 
Doshi Milan
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is could be a call to a Servlet
/Rene
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic