Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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: 14687
    
  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.
 
Don't get me started about those stupid light bulbs.
 
subject: Does jsp need seperate compilation?
 
Similar Threads
is it necessary to redeploy when we make a change
Using jsp in j2ee1.3.1
JSP compilation
JRun 3.1 Error: cannot find package named rt.jar
How to compile jsp's in different directory instead of tomcat work directory