hmm. don't understand why this is not what you want.

In JSP1, have the link specified as 

        <a href="#"
onClick="openWindow('/x.action','a2','width=330,height=210')" >...</a>

In struts-config.xml, have the forward action mapping,

        <action path="/x" forward="/reports/includes/z.jsp"/>

This should work the way you want.

Cheers,
Krishna




-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 6:02 PM
To: Struts Users Mailing List
Subject: RE: Relay action


Hi,
    The use case is this.

     1. User clicks on hyperlink on JSP1. 
     2. A new window opens. I don't want to specify the path of JSP2 as the
location of this window. So the location should be action1. action1 forwards
to JSP2.
     3. User hits submit on JSP2. 
     4. Action2 is fired which does what I want.

      Now action1 is a relay action. How is this usually done ? The idea is
tp route everything through an action.

Mohan

       

-----Original Message-----
From: Krishnakumar N [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 6:01 PM
To: Struts Users Mailing List
Subject: RE: Relay action


<action path="/x" forward="/reports/includes/z.jsp"/>

Cheers,
Krishna

-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 5:47 PM
To: Struts Users Mailing List
Subject: Relay action


Hi,
   I am sorry . My previous mail had a wrong subject line.
Mohan

-----Original Message-----
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 5:46 PM
To: Struts Users Mailing List
Subject: RE: Validator with Map-backed forms


Hi,
    I am opening a javascsript window like this.

    <a href="#" onClick="openWindow('/x.action','a2','width=330,
height=210')" >

    This action should only forward to a JSP. The real action is fired only
after one hits the submit button. I know that x.action is some sort of relay
action. How can I specify a relay action as the location of a javascript
window?

 I also know that the following is possible.

           <action         path="/y"
                           type="org.apache.struts.actions.ForwardAction"
                           name="noDataForm"
                           validate="false"
                           scope="request"
                           parameter="/x.jsp"
               input="/reports/includes/z.jsp"> 
   </action>

Thanks,
Mohan

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

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

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

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

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

Reply via email to