Form field validation - best practices

2006-10-03 Thread Duane Rosengartner
In our application, the implementation for error message handling is: using a HashMap for error messages with the form propertyName as the key. This prevents duplicate messages for form fields. Taking one example use-case: zipCode, rules are: must be numeric, and must be at least 5-digits in length

RE: Problem loading/invoking struts app

2006-06-13 Thread Duane Rosengartner
.redbooks.ibm.com/abstracts/sg246690.html?Open Duane -Original Message- From: Adari, Chandra [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 6:37 PM To: Duane Rosengartner Subject: RE: Problem loading/invoking struts app Can you please send me the article you are talking about

RE: Problem loading/invoking struts app

2006-06-12 Thread Duane Rosengartner
It appears your classloader is picking up the wrong jar. If this is websphere 6, it comes with a jdom.jar that has given us problems similar to yours. Attempt to use the parent-first parent last setting; match with your working environment. It should be under the server(or node) properties. If this

RE: [OT]what techonolgies will you use to develop a new web application

2005-11-09 Thread Duane Rosengartner
I don't know folks; perhaps we're hung up on the word 'simple' or you'd have gotten more responses. Or is it that we're a Struts User group and we feel the question is rhetorical? No, that can't be it. I personally feel you should have searched the archives on this one. It's one that's asked every

RE: problem in Beanutils.copyProperties()

2005-09-26 Thread Duane Rosengartner
Try writing your own utils class extending BeanUtils. You can either check all input variables for null, or check datatype first, then check for null only on those properties you wish to allow 'null-ok'. You can still take advantage of BeanUtils by calling super.X(property, value), or super(dest, s

RE: Forwarding to the previous page

2005-09-07 Thread Duane Rosengartner
This works very well for me. Back -Original Message- From: Tremal Naik [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 7:24 AM To: Struts Users Mailing List Subject: Forwarding to the previous page Hi, I have a menu on my application, which is tiled in all the pages. I

DynaForms & Radio Buttons

2005-09-07 Thread Duane Rosengartner
use the Id (userId,accountId)or concatination of Id|someOtherVariable as the value of the Radio button property. Then in your action you would use the value of the radio to perform further processing. In most cases, the rows are simple views of an object. The selection of the row would require you

Tomcat 5 issue

2005-08-12 Thread Duane Rosengartner
I need to know if Tomcat has a request timeout that can be configured. Looking into the server.xml, I see timeouts related to database connections, and session, and something called tcpSelectorTimeout I have a wierd scenario: Typically, logging massive amounts of data will overburden memory usage

RE: Conditionally show values in Tile (c:when?)

2005-08-11 Thread Duane Rosengartner
>> <%=errmsg.toString().length()%> >> <%--correctly prints the expected value--%> I believe the scriptlet is evaluated at runtime(server-side). Is it possible you have a bean property holding this: errmsg 'expected value' ? >> However the JSTL is explicitly directed to Page-scope for this. Se

RE: strut 1.2.7 and web.xml

2005-08-11 Thread Duane Rosengartner
I don't believe the web.xml would have to change to upgrage struts version, except of cource references to Struts.jar etc. I believe the header has to be in Sync with the Tomcat/web-app version you're using. For example, I have Tomcat5.0.28 and my web.xml begins as such: http://java.sun.com/xml/

RE: Validator...the 1001st question...

2005-08-10 Thread Duane Rosengartner
Based on the following... maxlength 20 Try this in yo

RE: Validator...the 1001st question...

2005-08-10 Thread Duane Rosengartner
>> shouldn't it show "error.saluation.makechoice" instead ?? It should. Do any of your other messages work, or is it possible that error.saluation.makechoice is not in your .properties file, or worse, the file is not being found in your classes directory? OK, We can assume the file is found if th

RE: Nice try (was Java code generator including Struts 1.2)

2005-08-10 Thread Duane Rosengartner
Version 3.0? -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 1:51 PM To: 'Struts Users Mailing List' Subject: AW: Nice try (was Java code generator including Struts 1.2) Su, but those generators are pain in the ass... You generate with

RE: validate() not called haunts

2005-08-10 Thread Duane Rosengartner
>> p. Now i have got the debugging working. But Since debugging is working, try catching a breakpoint where validate is being called, then step-into... My best guess is the method signatures need to be verified. INO, are you overridding validate or overloading? You may be invoking the superclass

RE: Javascript + Struts tag problem

2005-08-08 Thread Duane Rosengartner
evaluating to "false" (i.e the 'else' case). Amitava Basak ASE Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Duane Rosengartner" <[EMAIL PROTECTED]> 08/06/2005 12:13 AM Please respond to "Struts Users Mailing Lis

Javascript + Struts tag problem

2005-08-05 Thread Duane Rosengartner
I have the following Javascript primarily used to manipulate a CSS style and make a portion of a form visible. In the process, the achor invoking the JavaScript passes parameters from a table Row(resultset) displayed. In this Row, I have two bean properties declared as Java type Boolean. The toStri