I would approach this (i haven't tried this) as i said before, by having an app that modifies the dynamic apps and lets you reload them. This way you can build it for different containers and if the reload fails you can manage it. I know there were some postings yesterday that sounded very informed and stuff, but i cant see how you dynamically change the same app that modifies itself before reloading with a reasonable level of redundancy.

I'd also suggest this is a problem broader than struts but more a question of java/jsp. Struts will just make life easier when developing java/jsp apps.

Separating the apps would also make things easier in terms of clearly defining the work to be done.

Cheers Mark

On 8 Jan 2004, at 11:07, lixin chu wrote:

Thanks for all your input, and Manfred's doc.

I have checked the list archive, and found the similar
discussion (looking for "Dynamic configuration"). I
think my question is similar.

let me explain a bit more on what I am doing:

1. I am building a portal type web application, and I
want to use Struts as a framework.
2. along the way, people will add web applications,
for example, a new leave submit/approval application,
which is also web based and struts based.
3. so once we have the leave application developed, we
need to integrate into the employee portal.
   first of all, I need to modify some web pages (jsp
files for example) so employees will know that the
application is ready. when they click the hyperlink
they should start using that. Tiles is being used here
because I want to make sure the consistent UI layout
when users are using the leave application (for
example, the header/footer are the same as the portal
pages).

the leave application will have some java classes, so
that's why i was asking if it is ok to dynamically add
them into a running application folder.

so my question is, how to support this requirement in
Struts ?


--- Mark Lowe <[EMAIL PROTECTED]> wrote:
I'm  not really sure what you're trying to do, but
assuming its
necessary to generate java code, jsp's etc, i'd be
looking at doing
this using 2 webapps 1 would serve as basically a
code generator the
other would be the generated app. A bit like the
admin and manager
webapps bundled with tomcat.

This way your code generator could act as a
controller and fire up some
ant tasks to compile and then redeploy the generated
app.

Again not sure what you're attempting, but if it
were the case that you
didn't need to generate an action servlet but rather
have an action
where the beans are dynamic I'd be looking into
dynabeans to achieve
this.

I'd be interested in knowing what the actual problem
is you're solving.

Cheers Mark

On 7 Jan 2004, at 11:14, lixin chu wrote:

hi,
i just tried these sceniors, it seems that nothing
happened. I checked Tomcat log file, could not
find
when it restarted.

do i need to check something special ?
--- Carl <[EMAIL PROTECTED]> wrote:
If you add new java code in a running Tomcat
context, by default the
context will restart itsel automaticly.

Carl

lixin chu wrote:
Thanks !

I am very new to this web application world,
just
wanted to clarify if I can do these in a running
Struts application without restart Tomcat:
1. Can I modify existing JSP files ?
   Yes, I have tried
2. Can I add new JSP files into existing folder
?
   I think so.
3. Can I create new folders for some new JSP
files
?
4. Can I add new java class into an existing
folder ?
5. Can I create a new folder for some new Java
classes
?

thanks
li xin

--- Manfred Wolff <[EMAIL PROTECTED]> wrote:

li xin.

In my opinion it is no problem to add a
jsp-file
to
a struts application
at runtime. For this you don't need to restart
the
server. Changing the
configuration at run time is not possible with
the
current
implementation of struts. After a module is
initialized the
ActionServlet-class freezes the configuration.
Before that you can add
configurations such as actions, forwards etc.
with
the plug-in
mechanism, because the init() method of the
plugin
has full access to
the ModuleConfig.

You can override the ActionServlet Methode
init()
and don't freeze the
moduleConfig. In this case you have the
possibility
to add actions and
forwards to the configuration at run time.

Manfred

lixin chu wrote:


hi,
i would like to know if it is possible to

dynamically


(without restart servlet engine) add Actions.

say for example, i have one struts based

application


running. now i want to add one hyperlink in a

JSPfile


which points to another struts based
application
module. how do i do it ?

is there any existing soultion ?
thanks
li xin

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus"

Sweepstakes



http://hotjobs.sweepstakes.yahoo.com/signingbonus





---------------------------------------------------------------------

To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]





-- =========================================== Dipl.-Inf. Manfred Wolff ------------------------------------------- phone neusta : +49 421 20696-27 phone : +49 421 534522 mobil : +49 178 49 18 434 eFax : +49 1212 6 626 63 965 33 -------------------------------------------


____________________________________________________
Diese E-Mail enth&#37590;t m&#39939;licherweise

vertrauliche


und/oder rechtlich gesch&#40695;zte
Informationen.

Wenn


Sie nicht der richtige Adressat sind oder diese
E-Mail irrt&#40688;lich erhalten haben,
informieren

Sie


bitte sofort den Absender und vernichten Sie
diese
Mail. Das unerlaubte Kopieren sowie die
unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or
privileged information. If you are not the
intended
recipient (or have received this e-mail in
error)
please notify the sender immediately and
destroy
this e-mail. Any unauthorised copying,
disclosure
or
distribution of the material in this e-mail is
strictly forbidden.


=== message truncated ===


__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



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



Reply via email to