This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Setting the start page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setting the start page" Watch "Setting the start page" New topic
Author

Setting the start page

jay lopes
Greenhorn

Joined: Jul 17, 2008
Posts: 7
How do I set the default page? If I want http://192.168.1.1/here to point to tomcat/webapps/here/jsp/MainPage.jsp.

Yes I am really new to this, basically the only person in my company that knew how to do this left, and now our test side of the app won't start so I've had this dropped in my lap.

Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

The easiest way would be to drop an index.jsp file into the root of the web app that redirects to that URL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jay lopes
Greenhorn

Joined: Jul 17, 2008
Posts: 7
How would I code it?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Look up redirect and give it a try. JavaRanch is a learning site, not somewhere to get other people to write your code for you.

Start with a search on "JSP redirect"
jay lopes
Greenhorn

Joined: Jul 17, 2008
Posts: 7
thank you for your help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

If you have the JSTL set up for your application (and you should), it's a simple matter of using the right JSTL tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting the start page
 
Similar Threads
trying to connect to another ip adress
how to access this remote EJB server
how do u portforward a moparscape server to put online to public?
How to invoke the os's ping
Log4J NTEventLogAppender configuration through properties file