This morning I posted a problem
because of a waiting page:
This is the fix, but I don't understand why in this way the
ServletContext can be found.
Perhaps someone can explain!
Nice Weekend
/**
* Validate the properties that have been set from this HTTP request,
* and return an <code>ActionErrors</code> object that encapsulates any
* validation errors that have been found. If no errors are found, return
* <code>null</code> or an <code>ActionErrors</code> object with no
* recorded error messages.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
* @return <code>ActionErrors</code> object that encapsulates any
validation errors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ServletContext application = null;
//-->rises a Null PointerException
try {
application = getServlet().getServletContext();
}
catch (Exception e) {
application = request.getSession().getServletContext();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]