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:
findhi, i just tried these sceniors, it seems that nothing happened. I checked Tomcat log file, could notwhen it restarted.just
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,?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 folderfilesI think so. 3. Can I create new folders for some new JSPjsp-file?4. Can I add new java class into an existingfolder ?5. Can I create a new folder for some new Javaclasses?
thanks li xin
--- Manfred Wolff <[EMAIL PROTECTED]> wrote:
li xin.
In my opinion it is no problem to add athetoa struts application at runtime. For this you don't need to restarttheserver. Changing the configuration at run time is not possible withwithcurrent 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.pluginthe plug-in mechanism, because the init() method of theinit()has full access to the ModuleConfig.
You can override the ActionServlet Methodeapplicationpossibilityand don't freeze the moduleConfig. In this case you have theto 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 basedhttp://hotjobs.sweepstakes.yahoo.com/signingbonusmodule. how do i do it ?
is there any existing soultion ? thanks li xin
__________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus"
Sweepstakes
=== message truncated ===____________________________________________________
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 -------------------------------------------
Informationen.Diese E-Mail enth鋖t m鰃licherweise
vertrauliche
und/oder rechtlich gesch黷ztedieseinformieren
Wenn
Sie nicht der richtige Adressat sind oder diese E-Mail irrt黰lich erhalten haben,
Sie
bitte sofort den Absender und vernichten SieunbefugteMail. Das unerlaubte Kopieren sowie dieerror)intendedWeitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not therecipient (or have received this e-mail indestroyplease notify the sender immediately anddisclosurethis e-mail. Any unauthorised copying,ordistribution of the material in this e-mail is strictly forbidden.
__________________________________ 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]