It's got nothing to do with JSTL and everything to do with your Struts action.
The Struts controller effectively performs the forward with the result of your
action's execute method. Yes, <c:import> can work perfectly well when used
multiple times in a page. For URLs that are within the same context (same app),
the semantics are pretty much the same as RequestDispatcher.include.

Quoting Mick Wever <[EMAIL PROTECTED]>:

> On Wed, 13 Oct 2004 13:59:32 -0400, Kris Schneider wrote:
> 
> > I'm not sure he actually intended to do multiple forwards, it seems like
> > he just wanted to reuse an action to generate some common output. The
> > fact that Struts is performing an implicit forward in response to each
> > of those imports can be easy to overlook.
> 
> 
> Well bugger.
> I would go so far as to say that struts is not honouring the contract of
> c:import. Nowhere (that I can find, and please quickly point it out if you
> can) in the JSTL documentation can I find spec or definition that c:import
> 'forwards'. It is clearly stated that it imports a URL and never mentions
> forwarding.
> Taking this further, examples in Sun's 'core JSTL' book actually use
> multiple c:import's! So there is the clear indication that the import does
> not forward, and struts is breaking this contract...
> 
> Should I enter a bug?
> 
> Mick.
> 
> 
> -- 
> ---<BR/> "Everything you can imagine is real." Pablo Picasso
> <BR/>
> <a href=http://www.harryspractice.com.au>Harry's Practice</a>
> <BR/>--- 

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to