• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

config the struts controler mapping

 
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
moved from servlets -> struts forum (brand new one)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic