best practice suggestion when using tiles

2006-03-02 Thread brian papa
I'm using tiles in an application and so far have liked the modularity and reusablity. I have a thin web layer with the business logic all called from classes that extend the Tiles Controller, so that each class is attached to a single tile. I ran into a problem recently though where I wanted to c

Re: using tiles and setting a cookie

2006-02-22 Thread brian papa
me kind of workaround? Thanks again for all your help. On 2/21/06, brian papa <[EMAIL PROTECTED]> wrote: > Oops, meant to question the presence of the Response there. > > On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > brian papa wrote: > > > I'm starting to

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
Oops, meant to question the presence of the Response there. On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > brian papa wrote: > > I'm starting to think now that perhaps I'm doing this in the wrong > > place. After all the purpose of a controller should si

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
t; > Are your logs showing any errors about the reponse already being committed? > If the headers have already been sent then > adding cookies after that would be a useless task. But I think you would > probably have seen Java Exceptions at that > point. > > -David > &

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
at the browser is configured > to accept anything other than the exact > hostname, though you have probably looked into that and tried that already. > I made that suggestion since I've > previously read of problems like that on this list. > > Regards, > David > &

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
You do > know that the cookie won't be seen until > the response ends, right? The NEW cookie is given to the client's browser > and won't be seen by the server until the > client's next request. Can you give the controller method and some relevant > code pieces

using tiles and setting a cookie

2006-02-21 Thread brian papa
I'm having a problem setting a cookie inside of a Controller class. My custom controller extends from the base Controller class. Inside of my class, I'm simply trying to set a cookie to the HttpServletResponse. Inside of a Strut Action class, it's been working just fine. But in the controller, the