Thank you all for your help! Will look into sitemesh as well... cheers!

James

> -----Original Message-----
> From: Ben Wong [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 2:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Defining views for actions in 
> views.properties
> 
> 
> > Hi!
> > 
> > Thank you for the fast reply! Could you please clarify a 
> > couple more things for me??
> > 
> > > > (1)
> > > > I have an action that may be invoked from a number
> > > > of pages, and SUCCESS should cause the view to
> > > > return to the calling page.
> > > > Basically, Page A, B, C can call action MyAction,
> > > > and the successful execution should return to the
> > > > calling pages, A, B or C.
> > > > 
> > > > I obviously can't specify the view in
> > > > views.properties, since there is only one
> > > > destination view... so then, how can I achieve this?
> > > 
> > > If you pass "url" parameter, being the URL of calling
> > > page and direct your SUCCESS ro redirect.action you
> > > may be wondered. 
> > > 
> > > redirect.action is mapped by default. 
> > 
> > 
> > Do you mean having different query strings such as
> > 
> > .../MyAction.action?url=A.jsp
> > .../MyAction.action?url=B.jsp
> > .../MyAction.action?url=C.jsp
> > 
> > for each of the A, B, C pages? Is there another way so that I 
> > don't have to specify the url?
> > 
> > 
> 
> You can also map each page to a different action name, but the
> same action class.  For example:
> 
>   <action name="A" class="MyAction">
>      <result name="success" type="dispatcher">
>         <param name="location">A.jsp</param>
>      </result>
>      <interceptor-ref name="defaultStack"/>
>   </action>
> 
>   <action name="B" class="MyAction">
>      <result name="success" type="velocity-layout">
>         <param name="location">B.jsp</param>
>      </result>
>      <interceptor-ref name="defaultStack"/>
>   </action>  
> 
>   <action name="C" class="MyAction">
>      <result name="success" type="velocity-layout">
>         <param name="location">C.jsp</param>
>      </result>
>      <interceptor-ref name="defaultStack"/>
>   </action>  
> 
> Hope this helps,
> Ben Wong
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to