Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!