See below

> -----Original Message-----
> From: James Pan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2003 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Defining views for actions in views.properties
> 
> 
> Hello,
> 
> Got two questions:
> 
> (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?

You could have separate aliases for each of these with different
results, or you could pass in a parameter to tell it where to redirect
to, then chain to the redirect action...

> 
> 
> (2)
> Also, I have been looking at a design pattern "Intercepting Filter",
> 
http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFil
ter.html
>
>and I plan to use this to do some basic background checking, such as
user-authentication and decorate the requested jsp page.

> Is there something in WW that I can use? How would I decorate a page
without the user knowing about it (user requests mypage.jsp, and i
decorate it with layoutDecorator.jsp?page=mypage.jsp, sort of thing)??

Thank you very much,

James

Check out Sitemesh...

Jason


-------------------------------------------------------
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