As of now we have seen the introduction and work flow of JSP programs. Now let us know about one of the most important part, i.e, JSPC (Java Server Pages Compiler).
It is the responsibility of every server vendor to develop the JSP Compiler. They must develop JSPC based on the JSP specification. JSP compiler is a Java program which follows the rules of JSP specification.
When the client sends the request to JSP, it is the responsibility of the server to call the JSP compiler. Even we can call JSPC manually, by calling manually we can understand the internal code of generated servlet.
page under construction.....
To call the JSP compilar manually use the following steps in weblogic server.
ReplyDeletestep 1: open command prompt
step 2: set the class path to weblogic.jar which you can find in the weblogic server installed folders.
(note: don't try to copy the weblogic.jar in your desired folders because it is dependent on other jar files internally.)
step 3: type -> java weblogic.jspc -keepgenerated
thats all. This will create .java as well as .class both.