Query about
JSP
1.What is difference betn <jsp:forward> and request.SendRedirect()?
1) sendRedirect sends an HTTP Status Code to the
Client (i.e. the Browser) with the new URL.
2) The most significant difference is how the components
are drawn to the screen. AWT is constructed with
3) 16-bit character set that assigns unique character
codes to characters in a wide range of languages. Unlike
RimZim Sinha I have a doubt about JSP. When a jsp page is compiled it turns into servlet. After turning into servlet classes where does it store? Santosh A good question you asked. Infact the location depends on the Server (App Server) what you use. I would like to answer with JBoss with which we are using... Normally, we used to put the WAR files (deploy) in the <JBOSS_INSTALLED_DIR>\Server\default\deploy directory. Even we can directly deploy the JSPs. When a request comes for the particular JSP, its getting complied to a servlet into C:\jboss-3.2.4RC1\server\default\work\jboss.web\ localhost\ControlFlow\org\apache\jsp direcotry. See the ControlFlow is the Name of my application. (Name of the WAR file OR CONTEXT ROOT). C:\jboss-3.2.4RC1 => JBOSS_INSTALLED_DIR as i mentioned earlier. Localhost is for the pgm is being run in the local m/c itself. Org and apache directories are automatically created by JBoss and Jsp is created for being dealt with JSPs. The name of the JSP file inside the WAR file is ControlFlow.jsp. The converted Servlet file's name is Controlflow_jsp.java. Its also maintained by the AppServer. See these conventions and directories may/will very well depend/vary according to the AppServer. Raghavan alias Saravanan M It will store in this path..
Raghu M
Related:
Java Certification, Programming, JavaBean and Object Oriented Reference Books Return to : Java Programming Hints and Tips All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|