Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

module attribute for <exception> ?

Oren Livne

2007-03-22

Replies:

P.S. is there an equivalent attribute to "module" for global and/or
local exception attributes? Right now I have:
    <exception key="error.Exception"
    scope="request"
    handler="net.ruready.struts.common.exception.MailExceptionHandler"
    type="java.lang.Exception"
    path="/switchMod.do?prefix=/error&amp;page=/system.do" />
 
I want to have module="/error" and path="/system.do" instead. Could I
use a global-forward declaration instead of the action path used above?
(e.g. alias a global forward called "systemError" to use module="/error"
and path="/system.do" and then write path="systemError")

Thanks
Oren

Oren Livne wrote:
> Dear Niall:
>
> Thanks so much .You are a life saver. It works. Just one note -- the
> syntax that works is:
>
>> <forward
>>      module="/user"
>>      name="userHome"
>>      path="/home.do"
>>      redirect="true" />
>>
> Here the module must start with a "/", and the path is relative to the
> module's URL.
>
> Thanks!
> Oren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)

--
======================================================================
Oren Livne, Ph.D.
Research Assistant Professor of Mathematics
RUReady Software Architect

Academic Outreach and Continuing Education
1901 East South Campus Dr., Room 2197-D
University of Utah, Salt Lake City, UT 84112-9399
Tel : (801) 581-6831   Cell: (801) 631-3885   Fax: (801) 585-5414
Email: olivne@(protected)
======================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.