File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Does jsp need seperate compilation?" Watch "Does jsp need seperate compilation?" New topic

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?


SCJP 6.0
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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.
I agree. Here's the link:
subject: Does jsp need seperate compilation?
It's not a secret anymore!