Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i need help

 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 64847
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stefan Evans
Bartender
Posts: 1721
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic