• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map login.jsp file as landing page for my module  RSS feed

 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a module which contains mainly jsp pages

I have one login.jsp which does the login for the module.
I dont know hoe to map it so that when ever i will acess http://localhost/mymodule it will redirect me to login.jsp page.

can some one please let me know what should be my mapping in web.xml

 
Hongli Li
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in web.xml

<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>

it should do the trick
 
Ramakanta Sahoo
Ranch Hand
Posts: 256
Fedora Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You.
I had this mapping but the folder structure was a problem i made it correct and now its working..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!