This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How can I edit and force a recompile of default Tomcat5 index.jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How can I edit and force a recompile of default Tomcat5 index.jsp?" Watch "How can I edit and force a recompile of default Tomcat5 index.jsp?" New topic
Author

How can I edit and force a recompile of default Tomcat5 index.jsp?

mark garcia
Greenhorn

Joined: Apr 24, 2009
Posts: 3
I've read several articles on this but I'm not having much success.

Can someone here give me some guidance as to how I can edit and force a recompile of the default index.jsp servlet for Tomcat 6?

thanks,

mbedded.
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 507
Hi,
I am not sure if I understood your question correctly but if you simply go to the file
$CATALINA_HOME/webapps/ROOT/index.jsp and change its contents.
Access it using http://localhost:8080/index.jsp , it does show up the updated JSP.
I think you are accessing the root web-application using http://localhost:8080 and that keeps serving you the Apache default welcome page. That is being served by the index.html in the web-application.

You can delete index.html, so that you would be able to see the index.jsp as the default page that is served.
There is also a WELCOME FILE LIST construct available in the web.xml using which you can specify the order in which index page can be found.

With regards to forcing recompilation you can check the attributes defined for web.xml here -
http://localhost:8080/docs/jasper-howto.html ( These are reference to the local documentation that is installed when you setup tomcat locally.

Hope this helps.


Regards,
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I edit and force a recompile of default Tomcat5 index.jsp?
 
Similar Threads
How do I force a JSP recompile?
How does JSP engine understand need to translate JSP into Servlet and recompile?
Jsp in weblogic server6.0
how to forward from index.jsp
ajc recompiles