Re: Message Resources question

2002-04-16 Thread Enrique M. Almonte

Hi, maybe you can set your key in the action that calls your JSP,

MessageResources msgres = getMessageResources();
String key = msgres.getMessage(article.getChannel());
session.setAttribute(key,key); //or request

JSP :
String key = (String) session.getAttribute(key);
bean:message key='banneradtag' arg0='%=key % /

Greetings / Saludos

Enrique Almonte
DATAPRO Inc.


- Original Message -
From: Juan Alvarado [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 11:48 AM
Subject: Message Resources question


 Hi I need to be able to accomplish the following:

 bean:message key='banneradtag' arg0='???' /

 The part above with the ??? needs to be retrieved also from my message
 resources. So what I need to do is something like:

 bean:message key='banneradtag' arg0='bean:message
 key='%=article.getChannel()%'/' /

 The key is retrieved from a property in a bean thus:
 %=article.getChannel()%

 Can anyone tell me if there's a way to accomplish the above.

 Thanks in advance

 **
 Juan Alvarado
 Internet Developer -- Manduca Management
 (786)552-0504
 [EMAIL PROTECTED]
 AOL Instant Messenger: [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Design Help...

2002-04-16 Thread Enrique M. Almonte

Hi, check the iterate, nested tags or display tags at
http://edhill.its.uiowa.edu/display/

Enrique Almonte
Datapro Inc.

- Original Message -
From: Roshan Paiva [EMAIL PROTECTED]
To: 'Struts Users Mailing List' (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 12:48 PM
Subject: Design Help...


 Hi..

 I am designing an application which needs to populate a table in the index
 page.

 Previously what i had done was, in a servlet first populated a collection
by
 calling a Manager class, then setting the collection in a request object,
 and then forwarding it to the index page which will get the collection
 from the request object and then populate the table.

 Could you pls help me out and tell me the best way to implement that
 using the struts framework.


 Thanks and Kind Regards
 Roshan


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Struts 1.1b-1 - Parsing error processing resource path /WEB-INF/struts-config.xml

2002-03-20 Thread Enrique M. Almonte

Hi, you must assign the variable XERCESJAR to your project  (right click,
properties, java build path, add variable), and check the order must be
before the source folder of your project.

Enrique.

- Original Message -
From: Steve Hupert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 1:38 PM
Subject: Struts 1.1b-1 - Parsing error processing resource path
/WEB-INF/struts-config.xml


 I am attempting to create the struts-blank application from
 jakarta-struts-1.1b1-lib.zip using Websphere Studio Application Developer
 4.0.2.  When I attempt to start the application server (The Websphere v4
 Test Server) I receive the following error:

 java.lang.NullPointerException
 at

org.apache.commons.digester.Digester.createSAXException(Digester.java:1763)
 at

org.apache.commons.digester.Digester.createSAXException(Digester.java:1785)
 at org.apache.commons.digester.Digester.startElement(Digester.java:942)
 at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at

org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
 or.java:1214)
 at

org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
 r.java:1806)
 at

org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
 LDocumentScanner.java:1182)
 at

org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
 java:381)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at org.apache.commons.digester.Digester.parse(Digester.java:1206)
 at

org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
 ava:774)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
   .
   .
   .
 at

com.ibm.etools.websphere.tools.runner.api.ServerRunner$1.run(ServerRunner.ja
 va)
 [ERROR] ActionServlet - -Parsing error processing resource path
 /WEB-INF/struts-config.xml java.lang.NullPointerException


 I noticed other people have posted messages for similar problems and they
 were usually related to problems with the XML parser.  By default, WSAD
4.0
 is using Xerces 3.2.1.  I have also attempted to add crimson.jar and
 xalan.jar from Suns fall xml release to WEB-INF/lib.  This resulted in a
 similar error.

 I have been using the environment described above (WSAD 4.0, Xerces 3.2.1)
 successfully to develop software using Struts 1.02.

 If there is any additional information I can provide, please let me know.

 Thanks in advance for any help on this problem.


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]