  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | combining chain of commands with struts action | combining chain of commands with struts action 2007-01-19 - By manunixx
Back
hallo guys! I spent a lot of time trying to retrive a catalog from a struts action but i didn't get results! :( Following the guidelines found in the jakarta commonsChain, I did this:
defining a catalog.xml <catalog>...</catalog> adding a ChainListener to web.xml defining a parameter org.apache.commons.chain.CONFIG_CLASS_RESOURCE to tell the listener where to locate the catalog.xml
trying to retrive the catalog parsed from an action by doing:
Catalog catalog = CatalogFactory.getInstance().getCatalog(); // this return null
Question: do I have to config a CatalogFactory before?
can anyone suggest me any reference or updated documentation regarding struts action and common chain?
I saw that action mapping in struts-config.xml do accepts parameters "catalog and command". Do I have to use these to interact with commands?
Please halp me, I'm getting Nuts! Emanuele.
-- View this message in context: http://www.nabble.com/combining-chain-of-commands -with-struts-action-tf3039447.html#a8447680 Sent from the Struts - User mailing list archive at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |