And your not happ with just using...
<%=com.libris4you.books.maintenancepanel.AuthorTabController.DATA_PHOTO_WIDTH%>
On 6/24/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
On 6/23/07, Nikola Milutinovic <[EMAIL PROTECTED]> wrote:
> The answer is simple, "imageUrl" is calculated in the contr
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_
> 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
Well you learn something new everyday, I wasn't aware that ${X} worked
like
Which doesn't seem that bad to me.
With your spring setup you could also create an HandlerInterceptor [1]
and add it to your url mapping, that adds the PHOTO object to the
model after the controller has process the requ
On 6/22/07, Nikola Milutinovic <[EMAIL PROTECTED]> wrote:
> " 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 `he
Thank you all who responded.
> I think the following should do you
>
> " width=" value="${DATA_PHOTO_WIDTH}"/>" />
(sigh) I feared as much. It is just that I hate JSTL tags inside another tag's
attributes.
> On 6/22/07, Johnny Kewl <[EMAIL PROTECTED]> wrote:
> >
> > Hi Nikola, never done it, bu
I think the following should do you
" width="" />
On 6/22/07, Johnny Kewl <[EMAIL PROTECTED]> wrote:
Hi Nikola, never done it, but I think you have to override the resolver.
ie instead of the standard resolver, which looks for standard properties or
custom classes declared thru XML yours
Hi Nikola, never done it, but I think you have to override the resolver.
ie instead of the standard resolver, which looks for standard properties or
custom classes declared thru XML yours will tie to a class in your app.
Managed to find an ok article maybe its enuf for you to find the
On 6/22/07, Nikola Milutinovic <[EMAIL PROTECTED]> wrote:
Hi all.
This is not really TC related, but more JSP and EL question, but I thought I'd
ask.
I ask JSP, EL and JSTL questions here
http://jakarta.apache.org/taglibs/
or
http://forum.java.sun.com/forum.jspa?forumID=45
---
10 matches
Mail list logo