struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom tom <j_lal...@yahoo.com>
Subject Global Exception in configuration
Date Tue, 03 Apr 2007 01:52:34 GMT
Hi,

S1 in strusts-config.xml we used to have the following
global exception directive

<global-exceptions>
	<exception key="errors.general"
type="java.lang.Exception"
path="/jsp/common/globalFailure.jsp" />
  </global-exceptions>

The errors.general is the key from the resource
bundle.

How can we do the same in S2 with the following in the
struts.xml

<global-exception-mappings>
		   <exception-mapping
result="/jsp/common/failure.jsp"
exception="java.lang.Exception"></exception-mapping>
		</global-exception-mappings>

Can't we pass a key value from the resource bundle.

Thanks






 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message