my dog learned polymorphism*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "i need help" Watch "i need help" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016


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: http://aspose.com/file-tools
 
subject: i need help
 
Similar Threads
simple login script
login problem in jsp
HTTP status 500
Session variable returns null value
database login update problem