thanks Jon,

yes, this is a nice feature...
 "This can be used to integrate Struts with other business logic components that are 
implemented as servlets..."
     <action path="/saveSubscription
               type="org.apache.struts.actions.IncludeAction"
               ...
               parameter="/path/to/processing/servlet">
but this is not which i need :(

another (undocumented?) feature is to use include="..." instead of type="..."
from struts-config_1_0.dtd:
     include         Context-relative path of the servlet or JSP resource that
                     will process this request, instead of instantiating and
                     calling the Action class specified by "type".  Exactly one
                     of "forward", "include", or "type" must be specified.

but i think the result it's the same as the IncludeAction....

what i need is only not to rd.forward to the jsp-page after the action but
rd.include it.

i've already done some easiest patches to do this
  as an init-param for the ActionServlet for the whole Application
or as ActionForward.setRdinclude(true).

because i'm not a struts/servlet specialist i'd like to know if there are
any side-effects, breaking struts rule or what else, if i do this.
if not, it was very helpful for us if such a method was integrated in
the struts-release.

tia
  klaus

Am Dienstag, 23. April 2002 11:47 schrieben Sie:
> Hi Klaus,
>
> My mistake; I was just reading about the
> org.apache.struts.actions.IncludeAction on this list. It looks like you can
> have an action extend this instead of a standard Action.
>
> Would this help in your case; it does a RequestDispatcher.include().
>
> Jon.
>
> -----Original Message-----
> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 10:16
> To: Struts Users Mailing List
> Subject: Re: response has already been committed - question/solution?
>
> Hi Jon,
>
> thanks for responding.
>
> you mean  "<forward name="..." path="..." redirect="true">" in
> struts-config.xml?
>
> this does an 'sendRedirect()', not a RequestDispatcher.include() and did
> not help.
>
> thanks
>   klaus
>
> Am Dienstag, 23. April 2002 10:59 schrieben Sie:
> > Hi Klaus,
> >
> > Struts already has a mechanism to switch between forward and include, add
> > redirect="true" or redirect="false" to your actions forward.
> >
> > Jon.
> >
> > -----Original Message-----
> > From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> > Sent: 23 April 2002 07:59
> > To: Struts Users Mailing List
> > Subject: response has already been committed - question/solution?
> >
> > Hello,
> >
> > in our application was integrated a third_party portal software which
>
> don't
>
> > use
> > frames but includes (managed by a database) dynamicly parts of our
> > struts-application
> > via
> >      ...
> >    <%jsp:include page="<%=incl%>"></jsp:include>
> >      ...
> > this works fine with the Orion-AppServer but not with Tomcat4/JBoss
> > (Cannot forward after...)
> >
> > After reading the Mail-Archive and the Specs 'higgledy-piggledy' i'm
> > concluding that a Struts-Appl _cannot_ be included via
> > '<%jsp:include...'.
> >
> > Did i'm right? (It isn't very useful not be able to do this)
> >
> > Then the Light in the Dark(?):  rd.include instead of rd.forward
> >
> > i patched struts-1.0.2 that ActionServlet has a new init-parm "rdinclude"
> > and if this set to "true" it does an rc.include otherwise rc.forward.
> >
> > And our Application works FINE with Tomcat4!!!
> >
> > But where are the 'Hooks and Eyes'?
> > Is something like this already planned?,....
> >
> > any help/hints are very appreciated
> > tia
> >   klaus

-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."

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

Reply via email to