| Author |
url-pattern in filter mapping in struts2
|
srikanth sridhar
Greenhorn
Joined: Dec 17, 2011
Posts: 15
|
|
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
Joined: Aug 01, 2007
Posts: 485
|
|
|
If you are using tomcat server put your project in root directory.
|
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
|
 |
srikanth sridhar
Greenhorn
Joined: Dec 17, 2011
Posts: 15
|
|
|
Thanks a lot mohan.. It's working fine now...
|
 |
 |
|
|
subject: url-pattern in filter mapping in struts2
|
|
|