This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes how to get rid of /faces/ 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 » Java » JSF
Bookmark "how to get rid of /faces/" Watch "how to get rid of /faces/" New topic
Author

how to get rid of /faces/

baran tamer
Ranch Hand

Joined: Jan 22, 2009
Posts: 33
Hello

http://localhost:8181/baran/faces/default.jsp


my default page address is above , but i dont want to use the /faces/.
Can i get rid of it ,so url will show as below?

Amir Iqbal
Ranch Hand

Joined: Jun 23, 2007
Posts: 97
i think you should check URL MAPPINGS in web.xml of your project.....


i am Java +ve Now !
yigit darcin
Greenhorn

Joined: Jan 08, 2008
Posts: 15
if you define your Faces servlet as

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

then you can access your pages like : http://localhost:8181/baran/default.jsf
baran tamer
Ranch Hand

Joined: Jan 22, 2009
Posts: 33
thanks a lot
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get rid of /faces/
 
Similar Threads
American idol results: sad and suprised
default.jsp
Error while running the Controller Servlet
problem with using URIs as parameters
Problem accessing Oracle database through JDBC using JSP