|
Home > Archive > WebSphere Application Server > May 2005 > Welcome-file-list setting
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Welcome-file-list setting
|
|
| jeffrey 2005-05-25, 7:49 am |
| Hi,
I am using WAS6.0. When I setup welcome-file-list in the web.xml like this
<welcome-file-list>
<welecome-file>default.jsp</welcome-file>
<welecome-file>index.jsp</welcome-file>
</welcome-file-list>
and I browse http://domain:9080/a/index.jsp, the index.jsp is displayed
when I browse http://domain/a/
I found that a 404 page not found error come out that complain default.jsp
is not exist. (default.jsp is not exist in the folder actually). Why WAS
don't display index.jsp if default.jsp is not found ???
If I changed the web.xml like this
<welcome-file-list>
<welecome-file>index.jsp</welcome-file>
<welecome-file>default.jsp</welcome-file>
</welcome-file-list>
and browse http://domain/a/ ,
the index.jsp is displayed.
It seems that WAS only watch the first parameter of the welcome-file-list
setting....
Anybody can help to solve it ?
Thanks
| |
|
| Seems like you have a typo in your web.xml:
<welecome-file>index.jsp</welcome-file>
should be
<welcome-file>index.jsp</welcome-file>
(extra E letter).
Does this help?
"jeffrey" <asdf@asdf.com> wrote in message
news:d71e6u$4gpo$1@news.boulder.ibm.com...
> Hi,
>
> I am using WAS6.0. When I setup welcome-file-list in the web.xml like this
>
> <welcome-file-list>
> <welecome-file>default.jsp</welcome-file>
> <welecome-file>index.jsp</welcome-file>
> </welcome-file-list>
>
> and I browse http://domain:9080/a/index.jsp, the index.jsp is displayed
>
> when I browse http://domain/a/
> I found that a 404 page not found error come out that complain default.jsp
> is not exist. (default.jsp is not exist in the folder actually). Why WAS
> don't display index.jsp if default.jsp is not found ???
>
> If I changed the web.xml like this
> <welcome-file-list>
> <welecome-file>index.jsp</welcome-file>
> <welecome-file>default.jsp</welcome-file>
> </welcome-file-list>
>
> and browse http://domain/a/ ,
> the index.jsp is displayed.
>
> It seems that WAS only watch the first parameter of the welcome-file-list
> setting....
>
> Anybody can help to solve it ?
>
> Thanks
>
|
|
|
|
|