• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

connection b/w Two pages

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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.

Regards,
Vardhan
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can find nice examples here.

In simple you have create a navigation rule for your action and <redirect/>
for the specific navigation case.
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

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

//faces-config.xml

<managed-bean>
<managed-bean-name>TemplateBooking</managed-bean-name>
<managed-bean-class>TemplateBookingBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>

<navigation-rule>
<from-view-id>/TemplateBooking.jsp</from-view-id>
<navigation-case>
<from-outcome>result</from-outcome>
<to-view-id>/Result.jsp</to-view-id>
</navigation-case>
</navigation-rule>

//java class

public String result(){

return "result";
}

Regards,
vardhan
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic