Michael,

thanks for the fast reply but...

* isCancelled(request) do *not* return true if the request has been
submitted by a form:cancel button

I fixed it by using this code:
MultipartRequestHandler mprh = form.getMultipartRequestHandler();

    Hashtable h = mprh.getAllElements();

    if( h.containsKey("org.apache.struts.taglib.form.CANCEL")==true)
    {
     form.getMultipartRequestHandler().rollback();
     return mapping.findForward("predecessor");
    }

but I would like to use:

    if( this.isCancelled(request) )
    {
        ... like on the other pages....
    }

* There is an exception raised if the form:file field is empty.

500 Servlet Exception
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:861)
        at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:757)
        at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:15
99)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1227)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:435)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
        at com.caucho.server.http.Invocation.service(Invocation.java:236)
        at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:142)
        at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
        at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:263
)
        at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
        at java.lang.Thread.run(Thread.java:484)


Stefan.

Reply via email to