Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

change selvet mapping of the FacesServlet to map to the rootcontext.

843842May 20 2006 — edited May 22 2006
hi
,
I have the following url "http://localhost:8080/mycontext/faces/index.jsp".

i want (if possible) to romve the faces form the above url , to allow the end user to access the website without typing faces in the url,just http://localhost:8080/mycontext/index.jsp.

in the web.xml , I tried to change the FacesServlet mapping to map to any pages under contextroot, but this didn't work. ,
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/mycontext/*</url-pattern>
</servlet-mapping>
any idea?.

thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2006
Added on May 20 2006
1 comment
117 views