Exception is following:

*exception*

javax.servlet.ServletException
        
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

org.apache.struts.action.InvalidCancelException
        
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
        
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



Thanks for reading...

On 6/2/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Hi,I have got another problem,exception was thrown when I click my cancel
button using <html:cancel/>
The excute method in the related action is following:

 public ActionForward execute(
>         ActionMapping mapping,
>         ActionForm form,
>         HttpServletRequest request,
>         HttpServletResponse response) {
>         if (isCancelled(request)) {
>             return null;
>         }
>         TForm tForm = (TForm) form;
>         // TODO Auto-generated method stub
>         return null;
>     }
> }
>
>
My simple jsp page is following:


> <%@ page language="java"%>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean";
> prefix="bean"%>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html";
> prefix="html"%>
>
> <html>
>     <head>
>         <title>JSP for tForm form</title>
>     </head>
>     <body>
>     <html:errors />
>         <html:form action="/t">
>             name : <html:text property="name"/><html:errors
> property="name"/><br/>
>             <html:submit/><html:cancel/>
>         </html:form>
>     </body>
> </html>
>

Anything wrong?

Any help or comment is appreciated.


--
Why Signature?




--
Why Signature?

Reply via email to