8900120dd
8900120dd

Reputation: 21

session attributes with integer, cannot be resolved to type

im having a problem with my jsp, i have just added a new column to my ms access table called member No, but i am having problems using it in the session.

session.setAttribute("memberNo", new integer (results.getInt("memberNo")));

in the main class i have

integer memberNo = (integer)session.getAttribute("memberNo"); 

im getting an errors saying integer cannot be resolved to type

thanks

Upvotes: 0

Views: 11812

Answers (2)

Apurv
Apurv

Reputation: 3753

Its not integer, You need to use Integer

Upvotes: 1

WeMakeSoftware
WeMakeSoftware

Reputation: 9162

your integer should be either int or Integer there is no such type as integer in Java.

Java naming convention expects that all types start with capital letter.

Upvotes: 2

Related Questions