Yeah, I agree with Brian, although does StringUtils() have some methods you can use? (commons library)
Not sure? Check it out before creating a helper method. ---------------------------------------------------------------- Regards Jean-Jay Vester (Tel) +2721 558 0453 (Cell) +2782 460 5355 ---------------------------------------------------------------- -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Silberbauer Sent: Wednesday, May 03, 2006 4:18 PM To: [email protected] Subject: [CTJUG Forum] Re: Spring MVC question wrap the call in a helper method? On 5/3/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote: > > How do I avoid doing this and use some validation mechanism for the > request parameters: > > String n1 = request.getParameter( "n1" ); > String n2 = request.getParameter( "n2" ); > ..... > .... > String n100 = request.getParameter( "n100" ); > > if ( n1 == null ) { > n1 = ""; > } > > if ( n2 == null ) { > n2 = ""; > } > ...... > ...... > > if ( n100 == null ) { > n100 = ""; > } > > > > -- Brian Silberbauer Consultant +27 (0)83 566 2705 skype: brian.silberbauer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum -~----------~----~----~----~------~----~------~--~---
