Meaningless Drivel is fun!
The moose likes JSF and the fly likes connection b/w Two pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "connection b/w Two pages" Watch "connection b/w Two pages" New topic

connection b/w Two pages

Reshma Reddy
Ranch Hand

Joined: Dec 21, 2006
Posts: 197
I want to link between two jsp's in jsf how can i do this.In my page one CommandButton (New Booking Button)is there on clicking this button i need to redirect my control to Result.jsp page i am prety confusing with this connection Please help me to slove this problem.

Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
You can find nice examples here.

In simple you have create a navigation rule for your action and <redirect/>
for the specific navigation case.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Reshma Reddy
Ranch Hand

Joined: Dec 21, 2006
Posts: 197
Hi Venkatachalam,

thanks for your reply i done this by configaring in faces-config.xml and calling jsf page...but it is not working fine here i am pasting my code have a look and let me know.. what is the problem

//this is my jsf page button

<td><h:commandButton value="#{msg.button_lable1}" action="#{TemplateBooking.result}"/></td>




//java class

public String result(){

return "result";

I agree. Here's the link:
subject: connection b/w Two pages
It's not a secret anymore!