It looks like this:

                <!-- Login -->
                <action         path="/login"
        
type="com.vantra.volts.core.action.LoginAction"
                                        name="loginForm"
                                        scope="request"
                                        validate="true"
                                        input="/login.jsp">
                        <forward name="failure"
path="/loginfailed.jsp"/>
                        <forward name="mainmenu"
path="/mainmenu.do"/>
                        <forward name="disclaimer"
path="/disclaimer.jsp"/>
                        <forward name="changepassword"
path="/changepassword.jsp"/>
                        <forward name="rtquotesagreement"
path="/rtquotesagreement.jsp"/>
                </action>

                <!-- Logoff -->
                <action         path="/logoff"
        
type="com.vantra.volts.core.action.LogoffAction">
                        <forward name="failure"
path="/login.jsp"/>
                        <forward name="login"
path="/login.jsp"/>
                </action>

                <!-- Main Menu -->
                <action         path="/mainmenu"
        
type="com.vantra.volts.core.action.MainMenuAction">
                        <forward name="failure"
path="/login.jsp"/>
                        <forward name="success"
path="/mainmenu.jsp"/>
                </action>
The login forwards to logical name "mainmenu" mapped to "/mainmenu.do".
MainMenuAction returns "success" mapped to "/mainmenu.jsp".

-----Original Message-----
From: Abraham Kang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: RE: mapping to .do (action class) instead of jsp page


What does your struts-config.xml look like for MainMenuAction

--Abraham

> -----Original Message-----
> From: Boulatian, Misak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 4:25 PM
> To: [EMAIL PROTECTED]
> Subject: RE: mapping to .do (action class) instead of jsp page
> 
> 
> I've tried still hangs with no errors. It seems like it hits the action
> class MainMenuAction and
> from there I forward to the success page which is mainmenu.jsp. But never
> ends.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 3:25 PM
> To: [EMAIL PROTECTED]
> Subject: RE: mapping to .do (action class) instead of jsp page
> 
> 
> The path is context-relative, and must start with a "/".  Try it with
> path="/mainmenu.do".
> 
> -----Original Message-----
> From: Boulatian, Misak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: RE: mapping to .do (action class) instead of jsp page
> 
> 
> Hi all,
> 
> I am having problem of using mapping to action class rather than 
> to jsp page
> in struts config file. I want to find out if it is possible at 
> all. So far,
> every time I use this style mapping <forward name="success"
> path="mainmenu.do"/> the system hangs and I don't get any messages. Is it
> something that I am doing wrong or it is not possible to use this style
> mapping?
> 
> By the way, the version that I am using is (not beta yet):
> jakarta-struts-20010308.
> 
> I would appreciate the response.
> Thanks,
> Misak Boulatian
> 

Reply via email to