"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
OCJP6, OCWCD5
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
OCJP6, OCWCD5
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Jk Robbins wrote:
http://www.servletworld.com/servlet-tutorials/servlet-form-processing.html
...leave out that critical detail? Is it the way they map the servlets?
OCJP6, OCWCD5
Mike Zal wrote:In this case, it is providing a relative url. Since your Servlet started with a slash, it is an absolute url.
Bear Bibeault wrote:
Mike Zal wrote:In this case, it is providing a relative url. Since your Servlet started with a slash, it is an absolute url.
Not quite.
Absolute URLs start with the protocol; e.g. http:
Page-relative URLs start with no slash or protocol. These are fragile and should always be avoided.
Server-relative URLs start with the context path and are the preferred format to use in web apps.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |