wood burning stoves 2.0*
The moose likes Struts and the fly likes config the struts controler mapping 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 "config the struts controler mapping" Watch "config the struts controler mapping" New topic
Author

config the struts controler mapping

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
hello
in the "web.xml",i config the "servlet-mapping" of the struts controler as "*.do",it works well in both tomcat4 and weblogic6.1,but if i modify it to "/*.do",the weblogic works,but the tomcat dons't work.
otherwisw,if i setup the mapping as "/sub/*.do",and modify the hyperlink in the caller page accordingly(add the "sub" to the url),both the tomcat and weblogic don't work,why?

thank you very much!
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
having *.do should configure the thing to work for all subfolders of your application in addition to the root fodlder and is therefore equivalent to */*.do anyway, however, I am pretty certain that things like /sub/*.do causes confusion over whether you are configuring the sub/ web application or the sub/ subfolder of your root application. I suspect that is where the problem is. Why do you want the mapping to only work within a subfolder anyway?


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

moved from servlets -> struts forum (brand new one)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: config the struts controler mapping
 
Similar Threads
Any disadvantages of the struts framework.
weblogic in open solaris
how can i implement multiple controlers in struts?
question about configuration of struts controler
question for h:inputText with struts tile 1.1