I was going through a jsp tutorial on the web and ran across this:
response.setHeader("Location", "error.html");
The author says that this code forwards the page to error.html, but I found this not to be true. I was wondering if someone could give me an explanation on exactly what setting the header does in JSP.
Also, if someone could explain in simple words what "request" and "response" is in Java/JSP that would be great too. I tried googling but couldn't find an answer that made me truly understand these concepts (including the set header concept). If someone could give me an answer in layman's terms that would be great. Most of my Java is self-taught and I am still not clear on some terminology.
Thanks in advance,
Psyber
response.setHeader("Location", "error.html");
The author says that this code forwards the page to error.html, but I found this not to be true. I was wondering if someone could give me an explanation on exactly what setting the header does in JSP.
Also, if someone could explain in simple words what "request" and "response" is in Java/JSP that would be great too. I tried googling but couldn't find an answer that made me truly understand these concepts (including the set header concept). If someone could give me an answer in layman's terms that would be great. Most of my Java is self-taught and I am still not clear on some terminology.
Thanks in advance,
Psyber