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
-~----------~----~----~----~------~----~------~--~---