You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/02/24 00:22:47 UTC

DO NOT REPLY [Bug 33721] New: - Whitespace Strip by bean but not LookupDispatchAction

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: dev@struts.apache.org
        ReportedBy: zach.calvert@sourceprose.com


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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org