> 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 following in your jsp page
> 
> <img src="${imageUrl}" alt="Author photo" height="${PHOTO.HEIGHT}"
> width="${PHOTO.WIDTH}"/>

Alas this is not what I'm looking for.

My desire was to avoid code duplication and I spotted it in the fact that I had 
"photoHeight" (as a String) in two places:

1. in controller, which bound the value under that name
2. in JSPF which used that name in EL

I wanted to be able to specify the actual name in just one place.

Nix.





      
___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to