• 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

two same paths in different configuration files - Which one will load?

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following in my struts-config.xml file.



and

I have the following in struts-config2.xml file.



Here is my problem:

When i click on the url "/user.do" the UserAction2 is loading also the path in both config files are same( actually thats the action i want to load). But when i comment the action and form-bean elements in the struts-config.xml its showing "Cannot find ActionMapping or ActionMapping collections". The action part in the struts-config.xml is not needed actually when it is not loading right? thats why i have commented that.

Doubt 1: why the first action part is not loading?
Doubt 2: when i comment the unloaded action part why its showing error?


Please reply.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.

I'm not really sure what you're asking, though.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check your WEB-INF.XML what is the configuration file you are specifying
struts-config.xml file. or struts-config2.xml file or are you using "switch action"
may be some problem with that
Please re-phrase the question.

cheers

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic