So, from Martin Cooper's post at
http://www.mail-archive.com/struts-dev%40jakarta.apache.org/msg04548.html, I 
gather that while there is an "apparent assumption that each application has 
a single source of message resources" "in both Struts 1.0.x and the latest 
code", I can infer there is a way around it??

The new "subapp" concept looks pretty cool.  But does that mean you can 
install subapps on the fly, while your servlet engine is running?

  My ActionServlet has a set of pages that allow developers to upload an 
almost-war file (that has a struts-config.xml but no web.xml file) and it's 
read in and available immediately, all classes are loaded in... things are 
put in set places.  This allows new sections of the site to be added without 
reloading tomcat.

  Anyway, back to the topic at hand, I am still confused.  With Struts 1.0, 
can I add new messages without restarting (as I can add ActionMappings, etc, 
without restarting)?  I have been trying to look at the Struts code to see 
how it's done now, and I am just not seeing a way I can add my messages.

  Thanks for your reply,
   Becky

----Original Message Follows----
From: Ted Husted <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Splitting ApplicationResource.properties
Date: Mon, 21 Jan 2002 15:01:21 -0500

There's some recent work going on in the nightly build that might
interest you.

http://www.mail-archive.com/struts-dev%40jakarta.apache.org/msg04354.html


Becky Moyer wrote:
 >
 > Hello all...
 >    I can't seem to find the answer to my question in the archive, the
 > javadoc, or the source, so I was hoping someone could figure this one 
out.
 >
 >    I have a class extending ActionServlet to read struts-config.xml files
 > from places other then WEB-INF/ in order to split apart the different
 > aspects of my webapp.  I would also like to be able to split up my
 > resource.properties files.  I can find these files in my ActionServlet, 
but
 > I can't figure out how to read them in so that they will be available for
 > <bean:message key="mykey"/> tags.  I've tried doing a props.load and a
 > System.setProperties(props), and after I did that I saw that Struts 
stores
 > those messages using its own Properties object...I'm just not sure how I 
can
 > get the new properties in without losing the old properties, since it 
looks
 > like I have to create a new MessageResource object in the ActionServlet 
to
 > add in a new properties file.
 >
 >   I'm going to keep staring at the code and the javadoc, but does someone
 > have any ideas as to what I need to do with the properties to make them
 > available to bean:message??   I feel like I am missing something staring 
me
 > in the face!
 >
 >    Thanks in advance,
 >    Becky
 >
 > _________________________________________________________________
 > Send and receive Hotmail on your mobile device: http://mobile.msn.com
 >
 > --
 > 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]>



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

Reply via email to