Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Compiling jsps

  Asked By: David    Date: Aug 31    Category: Java    Views: 963
  

Is there any utility for compiling jsp files.
ie similar to javac.
As far as I know jsps are compiled when they are called for the first
time.
Is there any utility which checks whether the syntaxes are right or
not.
Even if I get a partial solution then also it will be of help to me

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Kifah Malik     Answered On: Aug 31

Normally, IDEs used do the syntax error
identification.
You can go for jspc (I have seen in Tomcat) for
compiling jsp  files

 
Answer #2    Answered By: Vicki Fields     Answered On: Aug 31

As far as I know weblogic has the option to compile the jsp  files.
Below is a snap from weblogic site.

The WebLogic JSP compiler parses your JSP file into a .java file, then
compiles the generated .java file into a Java class using a regular Java
compiler.


Syntax


The JSP compiler works in much the same way that other WebLogic
compilers work (including the RMI and EJB compilers). The command line
follows this pattern:

$ java weblogic.jspc -options fileName



where fileName is the name of the JSP file that you want to compile. The
options may be before or after the target filename. The following
example compiles "myFile.jsp" into the destination directory (one of the
options) "weblogic/classes".


$ java weblogic.jspc -d /weblogic/classes myFile.jsp

 
Answer #3    Answered By: Isra Demir     Answered On: Aug 31

Is this type of compiling  container specific? Ex. Could I use the
WebLogic compiler to compile jsp  and then put it under a WebSphere
container and have everything work? I've seen in JRun that the
compiled files  contain references to JRun. Just curious if there is
a generic compiler that would be container independent so when you
put the compiled  files in, it would recognize them and not recompile
them the first time?

 
Didn't find what you were looking for? Find more on Compiling jsps Or get search suggestion and latest updates.




Tagged: