This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does jsp need seperate compilation?

 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for pointing it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic