hi Leon, 

is this rule because of the NullPointerException you get when, for example
you check the Strings ".length()" or is there (also) another reason for this
practice?

thanks in advance
Julian 

> --- Ursprüngliche Nachricht ---
> Von: "Leon Rosenberg" <[EMAIL PROTECTED]>
> An: "Struts Users Mailing List" <user@struts.apache.org>
> Betreff: Re: ActionForm Stringvariables
> Datum: Thu, 16 Mar 2006 11:06:50 +0100
> 
> 1. The general rule is: never use null.
> 2. The specific rule for your application must be given by your
> application, but in doubt the general rule applies.
> 
> regards
> leon
> 
> On 3/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi there,
> >
> > I'm a newbie to struts and I have a question concerning ActionForms.
> > What's more clever: to initialize the String-parameters with "null" or
> with
> > "" (empty strings)?
> >
> > thx & ciao 4 now
> > Julian
> >
> >
> > --
> > "Feel free" mit GMX FreeMail!
> > Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to