RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Bah2 ;-) Saw this message after I had already responded to the previous one Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 > -Original Message- > From: Paul

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Hi, Paul. Just yesterday I wanted to make sure the HttpServletRequest I modified in a filter is the very same instance that arrives at the JSP, as I was wondering why getParameter() would return different results for the JSP. Having a "System.out.println(request)" in my filter and the same line

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Hi, Mike. In that case I misunderstood your example code. This ToStringBuilder seems to do what I coded myself. I'll eventually try that and maybe switch over. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Hi, Mike. Indeed I have not had a look at that class. But then, the ToStringBuilder makes it easier to write the toString method, while my approach saves me completely from writing it. Thanks for the hint anyway. Hiran - Hiran Chaudhuri SAG Systemhaus G

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Frank, I also had to go a long way until I found this approach. It actually came to me when I saw in my project many data objects (= java beans) were generated using UML tools that did not care about the toString() method my way. Next I saw Castor XML/JAXB and JDO code generation, and finally h

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Hi, Frank. I do not agree. While in most cases it is desireable to see inside a bean (hence I created my public static String toString(Object bean) method), there are times when I just have to make sure a bean is not just equal but the same instance. The java.lang.Object.toString() meth

RE: Proposed Action base class change

2004-10-07 Thread Hiran.Chaudhuri
Hi, Frank. I created a similar method, but rather a static one than a member method. So mine is in a class called BeanUtil (not the apache commons beanutils) and applicable to any other java bean. No need to modify the base class or whatever. So I can apply it on FormBeans as well as servletReq

RE: File Upload DEPRECATED?

2004-10-05 Thread Hiran.Chaudhuri
Hi. Although I'm not in the fileupload discussion, I also strongly suggest to be more verbose on the @deprecated tag, as it allows much quicker solution of the warnings during compile. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 808