Hi Chris,
Rahul Thakur wrote:
> Looks like it was the 'username'. The username is being initialised in
> the taglib handler implementation but the behaviour differs between
> JRun and Tomcat.
That should not be the case. The servlet spec is quite clear about the
order of execution of the vario
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rahul,
Rahul Thakur wrote:
> Looks like it was the 'username'. The username is being initialised in
> the taglib handler implementation but the behaviour differs between
> JRun and Tomcat.
That should not be the case. The servlet spec is quite clear
-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 wi
Looks like it was the 'username'. The username is being initialised in
the taglib handler implementation but the behaviour differs between
JRun and Tomcat.
In the layout template jsp for the admin console, we use a taglib that
checks if a user is logged in or not. The following snippet works on
J
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.
You need to pass a valid string to the method getParameter();
Try something more like:
String username = null;
Username =
On 4/10/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
Huh? Are you suggesting that this will cause an NPE:
String username;
...
username = pageContext.getRequest().getParameter(username);
??!
That's simply not true.
Sorry you are right, this code doesn't even compile leave alone
ge
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rashmi,
Rashmi Rubdi wrote:
> From looking at the following snippet I assume that username, password
> and logout are initialized as in:
>
> String username ="username";
> String password ="password";
> String logout="logout";
>
> If the above are n
From looking at the following snippet I assume that username, password
and logout are initialized as in:
String username ="username";
String password ="password";
String logout="logout";
If the above are not initialized then you would get NPE.
On 4/9/07, Rahul Thakur <[EMAIL PROTECTED]> wrote:
Yes I noticed that bug report. Here's the relevant snippet for the login form.
TIA,
Rahul
- snip
Login
Can you also post the HTML Form? May be it has some syntax errors.
Someone has reported a bug that looks a bit similar but is not the same:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200401.mbox/[EMAIL
PROTECTED]
-Rashmi
On 4/9/07, Rahul Thakur <[EMAIL PROTECTED]> wrote:
root cause j
Hi,
I am dropping this note after spending hours trying to figure out why
my webapp encounters an NPE trying to obtain a param from request.
Scenario:
Moving an old web app from JRun to Tomcat 5.5.23. The app uses custom
taglibs that provide for user authentication and login and this is
where I
11 matches
Mail list logo