> > > <img src="${imageUrl}" alt="Author photo" height="<c:out
> > > value="${DATA_PHOTO_HEIGHT}"/>" width="<c:out
> > > 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 answer is simple, "imageUrl" is calculated in the controller/servlet for
each request. "com.libris4you....DATA_PHOTO_HEIGHT" is a constant embedded in
the Java code, where it belongs. And, here is another one: in your example
"DATA_PHOTO_HEIGHT" is the name of the variable. In my example, I have already
made THAT name a constant in the Java class.
What I was looking for is having to change that name only in one place - Java
code. It could be that my quest is futile, but I wanted to pursue it and see
where it leads me.
Nix.
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
http://farechase.yahoo.com/
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]