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

Struts cofiguration problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
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 http://127.0.0.1:8080/struts/jsp/LoginView.jsp to my browser it throws HTTP 500 error saying
javax.servlet.ServletException: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String Ljava/util/Set;
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java)
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
http://www.javaranch.com/newsletter/Mar2003/newslettermar2003.jsp#struts
 
Greenhorn
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"/>
</plug-in>
---
2.<message-resources key="org.apache.struts.action.MESSAGE" parameter="resources.application"/>
 
Aloke Kuamr Das
Greenhorn
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,
Aloke
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"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- ========== 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" />
</form-bean>

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

<!-- Validation-->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>

<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction"
name="login"
input="/jsp/LoginView.jsp"
validate="true">
<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
</action>
</action-mappings>
</struts-config>
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic