Reputation: 21
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
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