• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making default page

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic