DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33721>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33721 Summary: Whitespace Strip by bean but not LookupDispatchAction Product: Struts Version: 1.2.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Custom Tags AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] If you have a line in a properties file, such as button.disagree=Disagree and there is whitespace at the end of Disagree, there is a problem using struts-bean and LookupDispatchAction. When using this tag within a jsp: <bean:message key="button.disagree"/> and this static { mKeyMapping.put("button.continue", "createAccountBusiness"); mKeyMapping.put("button.update", "updateAccountBusiness"); } One will strip whitespace and one will not. I have not identified which does and which does not because of how it is buried within the Exception. The exception received is: javax.servlet.ServletException: Action[/someAction] missing resource 'Disagree' in key method map at org.apache.struts.actions.LookupDispatchAction.getLookupMapName(LookupDispatchAction.java:242) at org.apache.struts.actions.LookupDispatchAction.getMethodName(LookupDispatchAction.java:283) at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) It is my opinion, although there are reasons I am not aware of for it doing it the way it does, that both the struts-bean and LookupDispatchAction should both strip whitespace. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
