File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

struts url-pattern problem..

ashutosh dhiman
Greenhorn

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...
www.xyz.com/welcome in place of www.xyz.com/welcome.do or www.xyz.com/do/welcome
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
Greenhorn

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 path...how 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 struts-config..how do i do that??? is there any way?? n if yes won't it use welcome.do 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: http://aspose.com/file-tools
 
subject: struts url-pattern problem..