This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Spring MVC behaviour for Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Spring MVC behaviour for Struts" Watch "Spring MVC behaviour for Struts" New topic
Author

Spring MVC behaviour for Struts

Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
hello guys, i have a big respect for Struts but...
i need your help here

spring mvc have the feature that in the WEB-INF have the folder "jsp"
with all jsp files inside of there and of course and it is already resolved by


ok, please, how i can do this with struts???
an example or link tutorial will great!

all the most tutorials and books, have the jsp folder outside of the WEB-INF
folder

thanks a lot for advanced


kill your pride, share your knowledge with all
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you specify:

<controller forwardPattern="/WEB-INF/jsp/$M$P" />

in your struts-config.xml file, Struts will append /WEB-INF/jsp/ to any path you specify in a forward.


Merrill
Consultant, Sima Solutions
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello Merrill

thanks for the reply

in this topic i am lost,you know where i can find a simple example??? or tutorial

/$M$P"

well, what's mean??

sorry for my ignorance in this point

thanks for advanced
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Look under the heading "Controller configuration" in this link.
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello Merrill

thanks for the reply and link,

i will read the documentation

thanks for your time again
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Spring MVC behaviour for Struts
 
Similar Threads
Implementing Paging
Spring MVC i18n problem
Place JSP files in WEB-INF Folder
Struts taglibs - references - doubt
Accessing jsp's directly