Re: Tiles referencing actions.

2002-11-19 Thread Cedric Dumoulin

 A "forward" change the current request processing from one servlet to 
another, but stay on server side, and the request object is the same.
 A redirect send a response to the client (the browser), instructing it 
to send another request to the specified URL. The request object change 
because another request is issue.
Building a page with Tiles  require that you keep the same request 
object until you complete the page. So, you can only use forward, and 
not redirect.

  Cedric

ROSSEL Olivier wrote:

But when I want to tiles:put the output of the LoginState 
action into the
loginBox :






, nothing appears.

My question:
is it possible to have tiles:put to display the output of an 
action, instead
of just the output of a 
(statically-referenced) jsp.
   


I answer to me:
yes you can reference to a Struts action from a tile.
But this action must not forward to a result page via a redirection
(:  will make the tile to display nothing.)

So my question is: why?
Having redirect="true" in the  of an action is quite
good. But it is incompatible with tiles, which are also quite good.

Is it a feature?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tiles referencing actions.

2002-11-17 Thread Martin Cooper


On Fri, 15 Nov 2002, ROSSEL Olivier wrote:

> > But when I want to tiles:put the output of the LoginState
> > action into the
> > loginBox :
> >
> > 
> >  
> >  
> > 
> >
> > , nothing appears.
> >
> > My question:
> > is it possible to have tiles:put to display the output of an
> > action, instead
> > of just the output of a
> > (statically-referenced) jsp.
>
> I answer to me:
> yes you can reference to a Struts action from a tile.
> But this action must not forward to a result page via a redirection
> (:  will make the tile to display nothing.)
>
> So my question is: why?
> Having redirect="true" in the  of an action is quite
> good. But it is incompatible with tiles, which are also quite good.

Tiles needs to use request attributes to communicate information between
the tiles on a page. Using a redirect loses att request attributes,
because it requires a round trip to the browser and back.

--
Martin Cooper


>
> Is it a feature?
>
> This e-mail is intended only for the above addressee. It may contain
> privileged information. If you are not the addressee you must not copy,
> distribute, disclose or use any of the information in it. If you have
> received it in error please delete it and immediately notify the sender.
> Security Notice: all e-mail, sent to or from this address, may be
> accessed by someone other than the recipient, for system management and
> security reasons. This access is controlled under Regulation of
> Investigatory Powers Act 2000, Lawful Business Practises.
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tiles referencing actions.

2002-11-15 Thread ROSSEL Olivier
> But when I want to tiles:put the output of the LoginState 
> action into the
> loginBox :
> 
> 
>  
>  
> 
> 
> , nothing appears.
> 
> My question:
> is it possible to have tiles:put to display the output of an 
> action, instead
> of just the output of a 
> (statically-referenced) jsp.

I answer to me:
yes you can reference to a Struts action from a tile.
But this action must not forward to a result page via a redirection
(:  will make the tile to display nothing.)

So my question is: why?
Having redirect="true" in the  of an action is quite
good. But it is incompatible with tiles, which are also quite good.

Is it a feature?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles referencing actions.

2002-11-15 Thread ROSSEL Olivier
I have made an action "LoginState" that redirects either to  IsLogged.jsp if
a user
has logged in my application, or to IsNotLogged.jsp if the user is a guest.

Now I would like to use tiles for my applciation and provide in the upper
right
part of my pages, the output of this "LoginState".

I have made my HTML template, the upper right part is referenced by the name
"loginBox".

But when I want to tiles:put the output of the LoginState action into the
loginBox :


 
 


, nothing appears.

My question:
is it possible to have tiles:put to display the output of an action, instead
of just the output of a 
(statically-referenced) jsp.



---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: