Thanks for the replies - they have helped a lot. Sorry it's taken me so
long to get back and thank you for them - things have been busy in other
directions.
At any rate, we're still trying to figure out what implementation of
splitting apart struts-config.xml via entities will work best for our
application, but this is the route I think we'll take.
Now I am wondering if someone could further explain the ActionServlet method
definitions in the javadoc. Once i add a new definition to my webapp, I'd
like to reread struts-config.xml and its associated entities so that I read
in the new files. Is there a method to do this? I've been looking at the
various init methods, but I'm afraid that using these will kill any sessions
that are active when I add something new. If this is the case, I should
dynamically add the new struts-config.xml files while saving them for when
the server is restarted later.
So, trying to summarize what looks to be a confusing paragraph, is there a
method in the ActionServlet to reread the struts-config.xml file in such a
way that it won't seriously interrupt active sessions?
Or...is there a way to pass the ActionServlet an additional
struts-config.xml and have it read it in while active and still using the
existing one? I imagine this answer is no, I have to parse the new file
myself and create action-mappings and forwards and then add them one by one
to the ActionServlet.
Again MUCH THANKS for the replies, they are very helpful.
-Becky-
----Original Message Follows----
From: "Becky Moyer" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ActionServlet.addMapping() persistence
Date: Wed, 08 Aug 2001 12:58:02 -0400
Hi all...
I want to write an Action that will add mappings to the ActionServlet on the
fly. Am I correct in thinking that any ActionMappings and such that I add
in this way will not be persisted, and that I also have to modify
struts-config.xml if I want the mappings to be available for future restarts
of my servlet engine?
Also, is there a way to specify multiple config paths in the ActionServlet
so that i can have more then one struts-config.xml in one webapplication?
So, for example, I would have a webapp test, which has
test/WEB-INF/struts-config.xml. If I added something later to it,
test/subtest, with its own new Actions, could I make a file
test/subtest/WEB-INF/struts-config.xml and have that file ALSO be read by
the ActionServlet on startup?
I suppose I could update struts-config.xml and then tell the ActionServlet
to reread it in the Action I talked about in the first paragraph...I'd like
to be able to seperate this out, if possible, to make the seperate
components of my webapplication seperate. The problem with putting this all
into individual webapps is that I want the session to be passed from one
part of the webapp to the next.
Any thoughts?
Thanks,
Becky
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp