File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Hide absolute navigation paths Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Hide absolute navigation paths" Watch "Hide absolute navigation paths" New topic
Author

Hide absolute navigation paths

Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Hi,
I have the following navigation rule which works fine..

<navigation-rule>
<navigation-case>
<from-outcome>
RESULT_VIEW
</from-outcome>
<to-view-id>
/WEB-INF/views/pages/Compare.jsp
</to-view-id>
</navigation-case>
</navigation-rule>

The only issue is that the whole path gets displayed in the Address bar once the Compare.jsp page is rendered as below.

http://localhost:9080/MyApp/faces/WEB-INF/views/pages/Compare.jsp

Ideally i would like to see something like..
http://localhost:9080/MyApp/faces/Compare.jsp


Please let me know what i need to do in order to achieve the above..

Thanks in advance,
-Mike
[ July 07, 2008: Message edited by: Mike Skit ]
Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Hi Guys, any options to the above query.. ?

Thanks,
-Mike
Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
Which server are you running on and which implementation of JSF you are using?


Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding
Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Hi Joe, Thanks for responding..

Below are the details..

Server : IBM WAS 6.0 App Server,
JSF Implementation Jars : Provided by IBM ( I guess it is JSF 1.1 ), not sure though.
Based on the faces-config.xml the dtd version it is referring is..
http://java.sun.com/dtd/web-facesconfig_1_0.dtd


Thanks,
-Mike.
Joe Matthew
Ranch Hand

Joined: Jun 10, 2008
Posts: 66
Can you show the web.xml?
I am sorry I took a long time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hide absolute navigation paths