Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Redirecting page by role  RSS feed

 
anass berrahma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
i'm working on a spring project, and i'm facing a trouble, the application starts with an authentification page, and i have 2 different users, and admin and a simple user, what i want is to redirect each user by his role to a proper page.
For example, the admin will be redirected to .../adminApp/index
and the user will be redirected to .../userApp/index
is there a way to do this on the JSP file or how can i do it.
thank you very much
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65832
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not the type of decision you would make in a JSP page. Make the decision in the controller before you decide which page to load.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!