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!

How to change url-pattern of JSF in web.xml?

843844Jun 15 2010 — edited Jun 16 2010
Hi,
I want to change URL pattern of JSF in web.xml , here's my requirement : default as "http://someserver:port/somecontext/somefolder/somepage.jsf" . However , I want it like this : "http://someserver:port/somecontext/xxx/somefolder/somepage.jsf" , between context and folder I need a mark , something like a folder but it's not exist . xxx is dynamic ,
I think it should be like this
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>/xxx/*.jsf</url-pattern>
	</servlet-mapping>
But it is not working , and neither can I to make it dynamic .
Could anyone give some advice?
Thanks in advance .

Edited by: Ricca on Jun 15, 2010 5:27 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2010
Added on Jun 15 2010
6 comments
1,151 views