• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic