fuan guo

Greenhorn
+ Follow
since Apr 09, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fuan guo

Hi all,
I am stuck in using the <html:cancel> button.The struts version is 1.2.7.When I am starting up tomcat 6.0,an exception occurred as following description:

1) In the JSP


code:
--------------------------------------------------------------------------------

.. <html:cancel value="CLEAR" /> ..

--------------------------------------------------------------------------------



2)In the struts-config.xml, added the below line in <action..> tag


code:
--------------------------------------------------------------------------------

<set-property property="cancellable" value="true" />

--------------------------------------------------------------------------------



3) In the Action class, the corresponding code is,

code:
--------------------------------------------------------------------------------

execute(...){ .... if(isCancelled(request)){ Sop("**** in isCancelled ****") session.setAttribute("customerSearchResults", null); return mapping.findForward( "search"); }

--------------------------------------------------------------------------------


Also Iam getting an exception :


code:
--------------------------------------------------------------------------------

007-03-06 15:51:56,435 ERROR [org.apache.struts.action.ActionServlet] - Parsing error processing resource path java.lang.NoSuchMethodException: Bean has no property named cancellableat org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)at org.apache.commons.digester.Digester.startElement(Digester.java:1276)at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)at oracle.xml.parser.v2.ValidatingParser.parseRootElement(ValidatingParser.java:1......

--------------------------------------------------------------------------------





Pls let me know how to proceed

Thanks,
Guo
12 years ago