Re: Where to store and how to retrieve Images for web app

2004-12-01 Thread Colin Kilburn
John, I typically store the images in a web-accessible directory. I have done this in several different webapps (in several languages for that matter). I typically have a table that holds any data about the image, most importantly, how to contruct a url for an image tag so I can display it o

Re: i18n of bean properties/data

2004-10-21 Thread Colin Kilburn
hard way. I import jsp files with a bunch of statements (I'm such a luddite). Heck, I once found myself creating dropdown lists for height and weight (property lines and html option code) using *Excel*. hehehe ... well, we all have our secrets. ;-)Thanks for your comments Joe an

i18n of bean properties/data

2004-10-20 Thread Colin Kilburn
Hi All, I'm not sure if this has been done before as I can't see any reference in the archives, but I have a hard time believing I'm the only one. I have to support multiple languages in my app. I can successfully set my users' locales using the Action.setLocale() method as well as the jstl eq

Re: How copy the values of my DynaForm to my Bean

2004-09-28 Thread Colin Kilburn
Gabriel, I'm not sure how Beanutils handles java.util.Date, but I have had this problem when trying to convert to java.sql.Date when the source value (in my form) was null. Now I call a method like this before a call to copyProperties(): public static void overrideConverters() { //

Re: Preventing user from validating a form twice

2004-06-22 Thread Colin Kilburn
Olivier, Here's the article that Jacob is talking about (I think): http://www.javaworld.com/javaworld/javatips/jw-javatip136.html I'm using this approach and am very pleased. Colin Hookom, Jacob wrote: Look up request tokens in the documentation/API. There was also an article on www.javaworld.com a

Re: BeanUtils.copyProperties IllegalArument Excpetion?

2004-05-14 Thread Colin Kilburn
In my experience this works fine. Colin Nathan Maves wrote: That was it! What is the best way to set a date field as a hidden property? Will is just work if I use Nathan On May 14, 2004, at 2:10 PM, Colin Kilburn wrote: Hi Nathan, I had this (or a similar) problem when I tried to populate a date

Re: BeanUtils.copyProperties IllegalArument Excpetion?

2004-05-14 Thread Colin Kilburn
Hi Nathan, I had this (or a similar) problem when I tried to populate a date field. It seems that a null or empty String is not a valid value for conversion to a Date. I remember the issue having something to do with BeanUtils' converter not having a default value for Date. Any chance

Re: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Colin Kilburn
Did you actually put log4j.properties in your WEB-INF/classes (as stated below) or in your src directory? ... a build would blow it away if it's in the classes (because it's an output dir). HTH, Colin Geeta Ramani wrote: Already did that: that's how the Java app worked ok I guess.. But cannot