Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
Due to compilation JSPs load very slow when accessed first time and could be a Performance issue. So we could avoid this and improve the performance by doing pre-compilation the JSPs and create the classes and ship them as part of Build artifacts like WAR file .
This Pre-Compilation could be done different ways, most of the Application Servers have their own built in configuration TAGs to achieve this.
For Weblogic, you should have this in weblogic.xml
<jsp-param>
<param-name>precompile</param-name>
<param-value>true</param-value>
</jsp-param>
For doing
this using ANT target, do the following, you have to use JASPER ant
task.
<target
name="jspc">
<jasper2
validateXml="false"
uriroot="${build.war.dir}"
webXmlFragment="${build.war.dir}/WEB-INF/generated_web.xml"
addWebXmlMappings="true"
outputDir="${build.src.dir}"
/>
</target>
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.