• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url-pattern in filter mapping in struts2

 
srikanth sridhar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI i am new to struts2. I have a login.jsp and i don't want to enter the project name and jsp file name in the url when i run from browser.
In filter mapping i found that url-pattern is /*. how to change that so that i can call from my browser like localhost:8080/login.do ?


<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

Is there any dependency and modifications that need to be done in login.jsp file?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using tomcat server put your project in root directory.
 
srikanth sridhar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot mohan.. It's working fine now...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic