The moose likes Struts and the fly likes struts url-pattern problem.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts url-pattern problem.." Watch "struts url-pattern problem.." New topic

struts url-pattern problem..

ashutosh dhiman

Joined: Oct 07, 2008
Posts: 7
hi all,
im using struts 1.3.8, I want to use url-patter without any .do or /do/*...
i want url in my application to be... in place of or
How do i do that?? how do i make like this....???
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Aside, all Struts Action classes should be called from JSP pages. These classes are the Controller. JSP pages are the View. Users of an application only interact with the View directly, not the Controller.

ashutosh dhiman

Joined: Oct 07, 2008
Posts: 7
may b you took me wrong..
what i want to say is...i want to hide my jsp's exact do i do that??? i don't want to show users my jsp path..i want to hide it with struts mapping...say my welcome.jsp is mapped with welcome in do i do that??? is there any way?? n if yes won't it use as a path for invocation coz in web.xml we set the url-pattern to be <>*.do<>. i don't want any .do..i just want plain welcome how do i do that???
I agree. Here's the link:
subject: struts url-pattern problem..
It's not a secret anymore!