• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jaas custom Realm and Login Module

 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JAAS and using this link to create custom Realm and Login module.
I have followed all the steps given in that tutorial.

I have created a web application with only one JSP page (index.jsp) as mentioned there and paste the following code in it:
Welcome ${pageContext.request.userPrincipal.name}

I have also add information to web.xml.
When I run the application it only displays the page with Welcome in it.

I would very much appreciate, if some one could guide me with this.
Should I have to create a LogIn page and then go to index.jsp page or some other steps are required to run the application.

Thanks
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally found a solution.
In web.xml of the web application I placed the code:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic