You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by temp temp <mi...@yahoo.com> on 2006/01/31 21:14:53 UTC

using requestDispatcher.inlude()

  
  
  Can I include multiple .do's using   request  dispathcer  include?
  
  or can I have 
  
  <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
  
  
  multiple times.
  
  
  like 
  
       <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
      
       <tr><td  colspan=12 >
        added  811
       </td></tr>  
       
      
       <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
       
      <tr><td  colspan=12 >
         added  812
      </td></tr>  
  Thanks & Regards
   

			
---------------------------------
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: using requestDispatcher.inlude()

Posted by Michael Jouravlev <jm...@gmail.com>.
On 1/31/06, temp temp <mi...@yahoo.com> wrote:
> Can I include ".do"    using jsp include ?

Of course. But if your ".do" forwards to a JSP, then this combination
won't work as you expect ;-) The response will be closed after the
forward, so the rest of your main page will not be rendered:

http://today.java.net/pub/a/today/2005/08/04/jspcomponents.html?page=3#jsp_servlets_compatibility

You may try to use <c:import> instead of <jsp:incude> I have not tried
it, but Paul Benedict told me that he was able to include Struts
actions with <c:import> without problems.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: using requestDispatcher.inlude()

Posted by temp temp <mi...@yahoo.com>.
Can I include ".do"    using jsp include ?
  Thanks & Regards

Michael Jouravlev <jm...@gmail.com> wrote:  On 1/31/06, temp temp  wrote:
>
>
>
>   Can I include multiple .do's using   request  dispathcer  include?

Sure. Be careful with flushing though.

>   or can I have
>
>  <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
>   multiple times.
>
>
>   like
>
>  <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>        
>         added  811
>        
>
>
>  <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
>
>       
>          added  812
>       
>   Thanks & Regards

Don't you like  for some reason?

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




			
---------------------------------
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: using requestDispatcher.inlude()

Posted by Michael Jouravlev <jm...@gmail.com>.
On 1/31/06, temp temp <mi...@yahoo.com> wrote:
>
>
>
>   Can I include multiple .do's using   request  dispathcer  include?

Sure. Be careful with flushing though.

>   or can I have
>
>   <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
>   multiple times.
>
>
>   like
>
>        <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>        <tr><td  colspan=12 >
>         added  811
>        </td></tr>
>
>
>        <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
>
>       <tr><td  colspan=12 >
>          added  812
>       </td></tr>
>   Thanks & Regards

Don't you like <jsp:include> for some reason?

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org