• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Struts cofiguration problem

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a beginner in struts but I have studied a lot form the very beginnig of struts, now I want to use it to my project. However according to Thomas Paul's tutorial I configured struts1.1 but I faild to get it's fruit. According to Paul when I typed to my browser it throws HTTP 500 error saying
javax.servlet.ServletException: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String Ljava/util/Set;
and some root cause,
So what should I do I mean how I can check the error message.
best regards,
Aloke Kumar Das
PS: You can visit the paul's tutorial in the following link
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please give me the link to downloading the war file.
I would like to test it myself first and tell you.
It is not quite clear from the error message, but
1.check if you have this in your struts-config.xml
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
<set-property property="stopOnFirstError" value="true"/>
2.<message-resources key="org.apache.struts.action.MESSAGE" parameter="resources.application"/>
Aloke Kuamr Das
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Praveen
I was in too much busy that's why I cannot reply to your message. Than you very much to check up problem. Would you mind if I mail to your yahoo account?
Thanking you,
best regards,
struts-config.xml fiels:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
<!-- ========== Form Bean Definitions ============ -->
<form-bean name="login"
type="org.apache.struts.validator.DynaValidatorForm" >
<form-property name="userId" type="java.lang.String" />
<form-property name="passWord" type="java.lang.String" />

<!-- ========== Global Forward Definitions ========= -->
<global-forwards> </global-forwards>

<!-- Validation-->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"

<!-- ========== Action Mapping Definitions ======== -->
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic