Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Site causing Exception when loading...

Status
Not open for further replies.

Exie

Programmer
Sep 3, 2003
156
AU
Hi,

I'm using WebSphere to build a struts application, and as soon as I hit the site with my browser I get the following exception:

[19/03/04 08:32:37:828 EST] 5db93a57 DispatchActio E org.apache.struts.actions.DispatchAction DispatchMapping[/loadCriteria] does not define a handler property
[19/03/04 08:32:37:844 EST] 5db93a57 WebGroup E SRVE0026E: [Servlet Error]-[action]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: DispatchMapping[/loadCriteria] does not define a handler property

As I'm just starting off, my struts-config.xml looks like so:
<struts-config>

<!-- Data Sources -->
<data-sources>
<data-source key="RMEDB" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
<set-property property="url" value="jdbc:mysql://localhost/RMEDB" />
<set-property property="password" value="" />
<set-property property="username" value="root" />
<set-property property="maxActive" value="10" />
<set-property property="minActive" value="2" />
<set-property property="maxIdle" value="6" />
<set-property property="maxWait" value="-1" />
</data-source>
</data-sources>

<!-- Form Beans -->
<form-beans>
<form-bean name="ReportCriteria" type="au.gov.vic.vwa.rme.form.ReportCriteriaForm" />
</form-beans>

<!-- Global Forwards -->
<global-forwards>
</global-forwards>

<!-- Action Mappings -->
<action-mappings>

<action path="/loadCriteria"
type="au.gov.vic.vwa.rme.action.Criteria"
validate="false">
<forward name="success" path="./criteria.jsp" />
<forward name="failure" path="./index.html" />
</action>
</action-mappings>

<!-- Message Resources -->
<message-resources parameter="rmeweb.resources.ApplicationResources"/>

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

.... Any ideas or suggestions to stop it causing the exception ?
 
Gee I'm a doofus!

The problem was staring me in the face all along, I forgot that I had defined the class "au.gov.vic.vwa.rme.action.Criteria" as a dispatch action for things I wanted to do later on!!

I just added a 'parameter="method"' and it all started working ...

Please ignore/delete this thread. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top