Re: dynamically add action ?

2004-01-08 Thread lixin chu
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

Re: dynamically add action ?

2004-01-08 Thread Mark Lowe
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

Re: dynamically add action ?

2004-01-08 Thread lixin chu
I am thinking of another solution - saw people talking about action chain but do not really understand: in the page, I use url encoding to differentiate applications: html:link page=/appl.do?applname=app1Application 1/html:link In the struts-config.xml, i define a stub

RE: dynamically add action ?

2004-01-08 Thread Sifuentes, Ben
Based on the code snippet you provided you could just define forwards on the action which match the possable values of procname. -Original Message- From: lixin chu [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: Re: dynamically add

Re: dynamically add action ?

2004-01-07 Thread Carl
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

Re: dynamically add action ?

2004-01-07 Thread lixin chu
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

Re: dynamically add action ?

2004-01-07 Thread Mark Lowe
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

Re: dynamically add action ?

2004-01-07 Thread Manfred Wolff
lixin chur You must configure your context as the following: Context path=/template docBase=/J2EELoesungen/Projekte/Template/webapps/template reloadable=true cookies=true Logger className=org.apache.catalina.logger.FileLogger prefix=template_log.

RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 5:29 AM To: Struts Users Mailing List Subject: Re: dynamically add action ? 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

Re: dynamically add action ?

2004-01-07 Thread Mark Lowe
two ways of doing it. Can't recollect it right now :(. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 5:29 AM To: Struts Users Mailing List Subject: Re: dynamically add action ? I'm not really sure what you're trying to do, but assuming its

RE: dynamically add action ?

2004-01-07 Thread Shishir K. Singh
] Sent: Wednesday, January 07, 2004 8:38 AM To: Struts Users Mailing List Subject: Re: dynamically add action ? Maybe.. cant say i recall anything that adventurous in programming with jakarta struts. Just seems logical to me that if you're making changes to code as runtime, and thinking of reloading

Re: dynamically add action ?

2004-01-07 Thread Manfred Wolff
Hi. After the discussion today I have made a litte paper how to add actions dynamically. Enjoy. There is a step by step tutorial, what to do. At runtime I change in this little description my actionpath from demo.jsp to demo2.jsp. There are a few modification necessary. After that you can

Re: dynamically add action ?

2004-01-07 Thread Kris Schneider
So, I re-read the original post and follow-ups, and it doesn't seem like this is what was being asked for at all. Maybe it's me, but it sounded like there was just some confusion about how to do *development*, not how to dynamically add actions at runtime. If that's the case, Li Xin should check

Re: dynamically add action ?

2004-01-06 Thread Manfred Wolff
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

Re: dynamically add action ?

2004-01-06 Thread lixin chu
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