| Author |
Identifier expected, (already searched and read about this, still confused
|
jim gemlo
Greenhorn
Joined: Feb 24, 2004
Posts: 20
|
|
Here is my class: getting identifier expected at the 'Class.forName'line. This same piece of code works fine when I have it in a jsp page. Im trying to place this code in a Bean so I can remove business logic from my page. So I created this class and get the error. thanks
|
 |
Jeffrey Hunter
Ranch Hand
Joined: Apr 16, 2004
Posts: 305
|
|
You need to wrap your expressions inside a method. Right now, you have your variables declared correctly as instance variables, but you cannot have those expressions in the class scope. For instance, the following Class, though useless, represents the proper structure: [ July 02, 2004: Message edited by: Jeffrey Hunter ]
|
 |
 |
|
|
subject: Identifier expected, (already searched and read about this, still confused
|
|
|