Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Navigation accross two different web application!!

 
Prabhat Gupta
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In JSF we can define the navigation rule for navigation inside the same web application using tag <navigation-rule> </navigation-rule> .

<navigation-rule>
<from-view-id>/pages/*</from-view-id>
<navigation-case>
<from-action>#{GetNameBean.helloAction}</from-action>
<from-outcome>sayHello</from-outcome>
<to-view-id>/b.jsp</to-view-id>
</navigation-case>
</navigation-rule>

Here the b.jsp is inside the some web application Application_B .

My question is if two web application Application_B and Application_C both are deployed in web container then how can i navigate from a jsp of one application to jsp of other web application ?

One solution is that combined both B and C as a single application and write navigation rule. But i have to keep them two different web application.

any suggestions regarding this are highly welcomed


Regards,

Prabhat
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot.

Best what you can do it so use h:outputLink with a plain vanilla URL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic