struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.Liang Liu " <patriot...@gmail.com>
Subject Cancel button:<html:cancel/>NOT work
Date Fri, 02 Jun 2006 03:35:46 GMT
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?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message