jQuery in Action, 2nd edition*
The moose likes JForum and the fly likes Making default page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Making default page" Watch "Making default page" New topic
Author

Making default page

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making default page
 
Similar Threads
welcome file in web.xml
welcome page not comming
deploying my webapplication on tomcat
default.jsp
welcome-file-list problem