This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts url-pattern problem..  RSS feed

 
ashutosh dhiman
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!