• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to return a navigation case from a servlet response.sendRedirect() ?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thank you for reading my post
how i can use navigation case that i defined in faces-config.xml when i am returning from a servlet ?
i tried to use one of navigation case that i defined in the faces-config.xml in a servlet and it does not works.

it works like :

my navigation case is login ,
i tried response.sendRedirect("login")
and it just show .../login in the address bar instead of login.jsp


thanks
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no. thats not how jsf works.

see http://www.coreservlets.com/JSF-Tutorial/#Section2 to understand jsf-navigation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!