hi, this is the navigation rule specified in faces-config.xml file

<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer
Faces Config 1.0//EN"
                             
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd";>
<faces-config>
        <managed-bean>
                <managed-bean-name>login1</managed-bean-name>
                
<managed-bean-class>in.v2solutions.com.Login</managed-bean-class>
                <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <managed-bean>
                <managed-bean-name>fwd</managed-bean-name>
                
<managed-bean-class>in.v2solutions.com.Forward</managed-bean-class>
                <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <navigation-rule>
        
                <from-view-id>/login.jsp</from-view-id>
                <navigation-case>
                        <from-outcome>success</from-outcome>
                        <to-view-id>/link.jsp</to-view-id>
                </navigation-case>
                <navigation-case>
                        <from-outcome>jforum</from-outcome>
                        <to-view-id>/jforum.jsp</to-view-id>
                </navigation-case>
        </navigation-rule>
        
        
        
</faces-config>


Kito D. Mann wrote:
> 
> Hello Ratnesh,
> 
> Have you setup any navigation rules?
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kito D. Mann - Author, JavaServer Faces in Action
> http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> 
> * Sign up for the JSF Central newsletter!
> http://oi.vresp.com/?fid=ac048d0e17 *
> 
> 
> 
> 
>> -----Original Message-----
>> From: Ratnesh,V2Solutions India
>> [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, May 02, 2007 7:59 AM
>> To: [email protected]
>> Subject: JSF: SERVLET calling a jsf/jsp page from one context to
>> another
>> 
>> 
>> Hi,
>> I have two directory named d1,d2 inside my tomcat container . and
>> inside d1,
>> there is page a.jsp and inside d2 there is page b.jsp . so i want to
>> call
>> b.jsp from a.jsp page , i have given a link for calling b.jsp in a.jsp
>> as
>> 
>> <h:commandLink action=''#{fwd.forward} value="CALL">
>> 
>> where fwd is name of managed bean and forward is method inside managed
>> bean.
>> 
>> like this
>> 
>> class Forward
>> {
>> public String forward()
>> {
>> return String "jforum";
>> }
>> 
>> can anybody help me resolving the issue.
>> 
>> Thanks
>> Ratnesh Pd. Sirvastava
>> V2Solutions India
>> --
>> View this message in context: http://www.nabble.com/JSF%3A-SERVLET-
>> calling-a-jsf-jsp-page-from-one-context-to-another-
>> tf3680135.html#a10284554
>> Sent from the Shale - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JSF%3A-SERVLET-calling-a-jsf-jsp-page-from-one-context-to-another-tf3680135.html#a10299070
Sent from the Shale - User mailing list archive at Nabble.com.

Reply via email to