The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Recompiling Single JSP Page

Highlighted
PPMRam
Collector

Recompiling Single JSP Page

Hi All,

 

Can anyone help, how to compile single jsp page in clustered environment. As I have used the below commnad to compile the page, Is it correct?

 

sh kJSPCompiler.jsp <jsp file name>.jsp

 

Thanks in Advance

 

2 REPLIES
Mohit_Agrawal
Frequent Visitor

Re: Recompiling Single JSP Page

Hi PPMRam,

 

Why do you need to compile the file? Whenever you change the JSP file then it's automatically recompiled by the PPM to reflect the new changes.

 

However if you want to compile one file only then your syntax is correct..

 

Thanks!!

Mohit Agrawal

:: Click KUDOS if you like

::Mark as Accepted if this resolves your query

 

 

RikardSeger
Occasional Contributor

Re: Recompiling Single JSP Page

Hi, JSPs are not always compiled automatically in PPM. In a production environment the JSP automatic compile flag is usually turned off. This flag can be found in the
deploy/jbossweb-tomcat55.sar/conf/web.xml file:

 

<init-param>
    <param-name>development</param-name>
    <param-value>false</param-value>
</init-param>

 

I don't think you can compile a single file with the kJSPCompiler.sh command. But if you run the ./kJSPCompiler.sh (not providing the "-all" flag) only modified files are compiled for all servers.

 

If you just want to compile a single file you probably need to use "javac <jspfilename.java>" and also figure out what classpath to run with.

 

Regards Rikard 

 

 

//Add this to "OnDomLoad" event