• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Making default page

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi~

I want to make my default page to jforum

So to speak, if I connect my http://localhost:8081, then I want to make it to http://localhost:8081/jforum/forums/list.page

How can I do it??

I know that I must fix my web.xml

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

but, which jsp or htm must be located at there?

My directory is like this.

[img]


Thank you
[originally posted on jforum.net by honghoekim]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easiest thing to do is to just create an index.jsp page that redirect to the forum home page. It just needs to be a single line like:



YSMBD


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you but.. you should know about this.

My directory is like this.


webapp -- ROOT -- index.jsp
-- jforum


As you know, tomcat's default index.jsp is under ROOT directory.

And when I made a new index_page.jsp which include "<jsp:forward page="forums/list.page"/>

in ROOT directory. It doesn't work.

It is because directory problem.

Where did you locate index.jsp???

In ROOT directory? or jforum directory?

I tried ../jforum/index.jsp but it doesn't work.

Please answer me

Thank you

[originally posted on jforum.net by honghoekim]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do a search on jsp:forward to find the documentation on this. This URL is relative to the JSP page or absolute from your webserver root if it starts with a /.

Alternatively, you can also just use the standard HTML Meta Refresh tag to do basically the same thing.
[originally posted on jforum.net by monroe]
reply
    Bookmark Topic Watch Topic
  • New Topic