Originally posted by Albin Joseph:
Since it is a get method , the container will call the doGet() method of the servlet. But it is not overriden in your servlet, the default implementation will get executed and the default implementation for doGet() is 'HTTP 405 message' ( at least in BEA Weblogic).
Originally posted by Lucas Sanabio:
The welcome-file-list will be the file which will be called when the user access your application.
Originally posted by Ben Souther:
You can only have one response per request.
One solution is to send the redirect or forward first.
Then put some javascript in the page to which you've forwarded that makes the call to get the download file.
Originally posted by Albin Joseph:
Error page will be invoked and diplayed when an error occured in a JSP page. Every error page must contain an page attribute called isErrorPage="true" and the page where the error or exception occured must tell which is the error page using errorpage="myerropage.jsp"
Fore more info Check this
http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm
Originally posted by Albin Joseph:
Hi
That is up to the container. You can deploy a folder instead of WAR file in Weblogic and Tomcat. The only thing is that the folder must follow the correct directory structure. If you want to deploy it on some other place or like that , the WAR will be easy to handle I think.
WAR means WEB ARCHIVE. JAR :- JAVA ARCHIVE.
WAR is an Web Aapplication archive and contains JSPs, "normal" static files (HTML, images, etc.), servlets, tag libraries, and such.
JAR is the "normal" Java Aapplication archive, but in this context it usually contains EJBs instead of code libraries or runnable (e.g. from outside an application container) applications
Originally posted by Albin Joseph:
HttpSession by default attempts to store the session in Cookies. So if cookies are disabled you need to use URL rewritting. For this you have two methods in HttpServletResponse. encodeURL and encodeRedirectURL. It will append the jsessionid paramater to your URL. If no encoding is needed it will return the URL unchanged.
you can use it like respons.sendRedirect(response.encodeRedirectURL("myrurl"));