struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emanuele <>
Subject problems retriving a Catalog from a Struts Action: ChainListener get a catalog null
Date Fri, 29 Dec 2006 11:12:01 GMT
Hi, I'm trying to get a Catalog from a Struts Action using ChainListener as described  in the
Commons Chain Cookbook at point "call a Command from Struts". 

What happens is that I get a Null Catalog executing this line of code:
Struts Action:

... ...
Catalog catalog = (Catalog) request.getSession().getServletContext().getAttribute("catalog");
... ...

This is my relevant config:

<!-- Commons Chain listener to load catalogs  -->


<action path="/testComando"  
            name="testBean" scope="request" validate="false"
    <forward  name="success"    path="/jsp/home.jsp" />

<catalog name="catalog">
    <command name="Comando2"           className="it.prato.comune.sit.serviziweb.controller.command.TestCmdDue"

I just to be able to read my catalog from a Struts Action to get the commands executed. Any
kind of suggest would be appreciate. Thanks.
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito
per i tuoi file e i messaggi 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message