Re: prevent validation of disabled fields on the JSP page

2006-02-10 Thread Vladislav Pernin
Which version of commons-validator are you using. I'm using Struts 1.2.8 and commons-validator 1.2.0, it validate only the non disabled field. Extracted from commons-validator.jar : function validateRequired(form) { var isValid = true; var focusField = nu

Re: global exception handler sometimes gets a null exception

2006-02-02 Thread Vladislav Pernin
Maybe it happens when the error is not thrown by Struts, so try to use the JSP directive <%@ page isErrorPage="true" %> which give you access to the implicit variable exception. You can also use a exception handler : package com.ddd; public class GlobalExceptionHandler extends ExceptionHand

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
fter the response has been committed or something similar, the problem is that (at least some of) the response has already been sent when the error occurs. You may be able to work around that by (a) making sure you use flush=false everywhere and (b) increasing the size of the response buffer.

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
d.java:534) If I use the <%@ page errorPage ..., the tiles bloc which fails is replaced by the content of error.jsp but not the user is not redirected. Any idea ? Vladislav Pernin Vladislav Pernin wrote: I just found in the 1.2.4 release note that this has been resolved. So I'm going

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
I just found in the 1.2.4 release note that this has been resolved. So I'm going to take a look at 1.2.4 migration. Vladislav Pernin Vladislav Pernin wrote: Hi all, I'm working in an Struts-1.1 tiles environment and I need to be able to redirect user on a JSP error page when

Struts-1.1 Tiles exception error page

2006-01-31 Thread Vladislav Pernin
g, and my JSP error page is called with both solutions (error-page in web.xml and directive errorPage in JSP). Maybe the response is commited before the exception is thrown ? The web gave me some directions, I tried all of them without any success. So if yo