On 6/23/07, Nikola Milutinovic <[EMAIL PROTECTED]> wrote:
The answer is simple, "imageUrl" is calculated in the controller/servlet for each request.
"com.libris4youDATA_PHOTO_HEIGHT" is a constant embedded in the Java code, where it belongs.
And, here is another one: in your example "DATA_
Was just thinking about this, and am curious to know (though it's pretty
trivial)... Is there any functional difference between the two options - if
they're both even possible? Which would you go with?
- 1 Service element with 5 HTTP connectors (each on a different port) and
one Engine with 5 Hos
Thanks again. This has been a very enlightening thread (no pun intended).
Caldarale, Charles R wrote:
>
> Normally, there's a thread pool per . Tomcat 6 introduces
> the ability to share thread pools across multiple s, via the
> element. (I haven't tried it.)
>
When might an advanced Tomca
> Also you talk about the DATA_PHOTO_HEIGHT and DATA_PHOTO_WIDTH
> properties being static propertys of the AuthorController class. Why
> not create a Constant object called PHOTO or something. make the
> height and width proper static on that, then pass that into the model.
> Then you can use the
> > > " width=" > > value="${DATA_PHOTO_WIDTH}"/>" />
> >
> > (sigh) I feared as much. It is just that I hate JSTL tags inside another
> > tag's attributes.
>
> Why would you use `src="${imageUrl}"` and then use the clumsy
> 'c:out' form? What's wrong with `height="${DATA_PHOTO_HEIGHT}"`?
The an
> From: lightbulb432 [mailto:[EMAIL PROTECTED]
> Subject: RE: Is ThreadLocal safe to use in servlets
>
> Based on the behavior you specified of ThreadLocals sticking
> around after the webapp is undeployed, is it correct to say
> that the thread pool you mentioned is global to ALL webapps
> in T
Thanks for that great answer! I'm hoping you could help clarify my
understanding and answer some more questions that your response brought
up...
Based on the behavior you specified of ThreadLocals sticking around after
the webapp is undeployed, is it correct to say that the thread pool you
mentio
> From: lightbulb432 [mailto:[EMAIL PROTECTED]
> Subject: Re: Is ThreadLocal safe to use in servlets
>
> A different way of asking this question is where/when
> does Tomcat start the Thread that handles a given
> request, and what is executed in the context of that
> thread? (e.g. filters, listen
You mention the use of filters, which leads me to the question of where is it
safe to start using a request-scoped object stored in a ThreadLocal? Would
it be safe to use in a filter, listener, or only once request processing
gets to the servlet?
A different way of asking this question is where/w
I had to deal with a lot of null values coming back from a database. I may
have been reinventing the wheel but I wrote a little DBUtil class that I
used to sanitize the returned data. I wrote a get for each type of data and
did a try catch. If the data came back not null I simply returned it, if
Hi,
Thanks for the reply.
Turns out that in apache 2.2 there is a flushpackets option in
mod_proxy. I'll have to upgrade since it's not available in 2.0. I
missed it because it's not an actual directive but an option to the
ProxyPass directive (I was looking at ProxyIOBufferSize).
|Regards,
Hi
I want to run 2 instance of tomcat on windows server, both of them are
5.5.20,
1. Is it possible to have them as 2 services so i can stop and start them
independently?
2. Do i have to install it twice?
3. Can i use java 1.4.2 for one and java 1.5.0 for other
4. I can setup one tomcat as startup
my only guess would be to turn off buffering in mod_proxy, if that is
possible
Filip
Sebastiaan van Erk wrote:
Hi all,
I wrote a Comet servlet for Tomcat, and am ready to deploy it.
However, my "normal" mode of deployment, namely Apache + mod_jk in
front of Tomcat no longer works in this si
Hi all,
I wrote a Comet servlet for Tomcat, and am ready to deploy it. However,
my "normal" mode of deployment, namely Apache + mod_jk in front of
Tomcat no longer works in this situation because Comet requires the NIO
or APR connectors, which do not support mod_jk. I also tried using
mod_pro
14 matches
Mail list logo