On 2/28/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > >javax.servlet.jsp.JspException: No bean found under attribute key result > > this is a regular struts exception, it is expecting a bean in one of the > scopes (request,page,session), but it is not there.
'The funny thing is, that there is actually no way for the bean to "not be there"... the code from the appropriate action looks like this: if (!r.isValid()) { if(r.getErrorMessage() != null && r.getErrorMessage().startsWith("PLZ")) { errors.add("search", new ActionError("errors.zip.notexisting")); } else { throw new RuntimeException("Query failed: "+IResultStatus.STATUS_DESC[r.getStatus()]+"("+r.getErrorMessage()+")"); } } else { ResultBean result = new ResultBean(); ... omitted... addBeanToSession(req, ISessionConstantsNames.SEARCH_BEAN_RESULT, result); addBeanToSession(req, ISessionConstantsNames.SEARCH_BEAN_LAST_QUERY, r.getSourceQuery()); } if(errors.size() > 0) { saveErrors(req, errors); proceedErrorHandling(req); return mapping.getInputForward(); } return mapping.findForward(view); <-- only this return leads to the jsp in the logs. if the jsp-in-question mapping is returned, the ResultBean must be in session, or the session is corrupted. > > your second error seems to be a result of a client disconnecting > > http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/connector/ClientAbortException.html Sure, but that doesn't explain why tomcat stops responding, does it? > > Filip Leon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]