Hi,

Correct if I'm wrong, you have action beans that generate page fragments (as
HTML I guess), that you want to be able to invoke over HTTP (AJAX update),
and also as parts of a more global page ?

If yes, I guess that what you need is just a regular action that generates
the fragment  : it'll respond to HTTP requests, and you can server-side
include it in any JSP using jsp:include :

@UrlBinding("/myPartial.action")
class MyAction implements ActionBean {
  String prop1; // and other props

  @DefaultHandler
  Resolution display() {
    return new ForwardResolution("/WEB-INF/my-partial-html.jsp");
  }
}

Via HTTP (outputs the fragment only) :
http://.../myapp/myPartial.action?prop1=foobar

Inside a .jsp :
<html>
  ...

  <div><jsp:include page="/myPartial.action"/></div>
  ...
</html>

HTH

Cheers

Remi


2011/1/4 Jonathan <jesuisjonat...@gmx.fr>

> Hello.
>
> Yes you're right its a kind of useActionBean but as written in the best
> practices wiki page
> (http://www.stripesframework.org/display/stripes/Best+Practices) "Prefer
> pre-actions over <stripes:useActionBean ... />".
> What I want to do is to include the pre-action forward resolution in a jsp.
> If I
> do that with the useActionBeanTag (<s:useActionBean
> beanclass="test.TestUseActionBean" event="view" executeResolution="true"
> alwaysExecuteEvent="true" var="myAb"/> with TestUseActionBean handler
> returning
> a ForwardResolution to test-uab.jsp) it avoids the main jsp rendering and
> only
> show the test-uab.jsp
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to