-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert,
Robert Harper wrote: > Try username. I'm surprised the compiler doesn't complain that username is > being used without being initialized. If it didn't, the compiler probably > set username to be null. I don't know of a single compiler that will initialize a local variable to NULL for you. > You need to pass a valid string to the method getParameter(); > > Try something more like: > > String username = null; > Username = pageContext().getRequest().getParameter( "username" ); Oh, hey. I didn't notice that the OP didn't have "username" in quotes. He's probably passing NULL to getParameter(). Yeah, that'll do it. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGHQsU9CaO5/Lv0PARAlkqAJwJbr312EAGnsGqZH4S/bPv7vh51QCggTti UmY0MCSQ+KPvokEMOOpVeBM= =+F/r -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]