Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Does jsp need seperate compilation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Does jsp need seperate compilation?" Watch "Does jsp need seperate compilation?" New topic
Author

Does jsp need seperate compilation?

Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Dear Ranchers,

I am maintaining a j2ee web application that was built years ago. The jsp page does have java code. There is no ant or maven for building war files. Any change that I make to the java code, I compile them put the class files in the production server. What if the change is in the java code of the jsp file? How do I compile the jsp page? I tried making the changes to the java code in the jsp page. and restarted the apache tomcat server, but the application did not reflect the change. I just want to know if the procedure is right. Is that how generally jsp files with java code compiled?

Thanks


SCJP 6.0
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

If Tomcat sees that the timestamp of your JSP file has changed (e.g. if you edited and saved the file), it should recompile it. You can check if it did, by looking into the "work" directory of Tomcat.


[My Blog]
All roads lead to JavaRanch
Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Thanks a lot for pointing it out.
 
Consider Paul's rocket mass heater.
 
subject: Does jsp need seperate compilation?