Meaningless Drivel is fun!
The moose likes Servlets and the fly likes i need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "i need help" Watch "i need help" New topic

i need help

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82

I want to use this code for login such that if count is =>2 let it log me in but it displays the error below

Here is the code. any help thanks
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Hey pard, you're here to get help, right? Well, a descriptive subject will do a lot more to attract the attention of the awesome volunteers here at the Ranch who can help you out! A simple title like "i need help" doesn't really make your post stand out and say "Read me!" Take a gander at this FAQ ⇒ UseAMeaningfulSubjectLine ⇐ for more info.

And, as always, step 1 is to move the code out of a JSP. JSPs are not the place for any Java code.

[Asking smart questions] [About Bear] [Books by Bear]
Stefan Evans

Joined: Jul 06, 2005
Posts: 1580

Your problem is you are referencing your integer variable as if it were an array.

This looks like it makes more sense:

Of course this code should be in a java class somewhere rather than a JSP.
I agree. Here's the link:
subject: i need help
It's not a secret anymore!