Hi, Jean. Maybe I missed a bit, but do you not always have page flow coded in JSP AND Action classes?
In the action the server decides what to do with user input and what page to go next. This page will be presented to the user. There may be several buttons on it allowing the user to choose how pageflow continues. So even if you think you can read module switching definitions from your config files, there will be some decision necessary WHEN to switch the module. And IMO this resides either in Action class or (by giving the user the choice) in JSP. Hiran ----------------------------------------- Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 > -----Original Message----- > From: jean kon-sun-tack [mailto:[EMAIL PROTECTED] > Sent: Freitag, 8. Oktober 2004 14:06 > To: Struts Users Mailing List > Subject: Re: Q: Switching Modules > > None of the 4 ways described in the user guide suits me... > > 1- Using <html:link module="moduleB" path="/menu.do"/> means > page flow is coded in JSP > > 2- Using ActionMapping means you are coding a Action class > > 3- Using global-forwards means you are coding a Action class > or referencing it in a html:link => hard coded page flow in JSP > > 4- Using org.apache.struts.actions.SwitchAction and typing > http://localhost:8080/toModule.do?prefix=/moduleB&page=/index.do > means page flow is coded in JSP and is not really secure... > > As I said, I want my page flow configured in my xml config > files, not in my JSPs. > And obviously, I do not want to code any Java Action, just > for a redirection This might be a config issue only. > > The only solution I found by now is to code a dummy Action > (just returning success) so that I can use > > <forward name="success" > module="moduleB" > path="/menu.do" > redirect="true"/> > > Well, now maybe I missed something about switching module... > Anybody have a hint ? > > Thanx. > Jean. > > > > On Mon, 04 Oct 2004 09:01:30 -0400, Jeff Beal > <[EMAIL PROTECTED]> wrote: > > > > > > jean kon-sun-tack wrote: > > > In my "companyList" screen I have a cancel button > (/companyList/cancel.do). > > > In moduleA-struts.xml, why can't I have something like : > > > > > > <action path="/companyList/cancel" forward="/menu.do" > > > module="moduleB" redirect="true"/> > > > > > > I want my page flow configured in my xml config files, > not in my JSPs by doing : > > > <html:link module="moduleB" path="/menu.do"/> > > > > > > Is there another way to do that ? > > > Thanks. > > > > > > Jean. > > > > > http://struts.apache.org/userGuide/configuration.html#module_config-sw > > itching describes three or four ways to switch modules. > > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]