Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to access variables declared in java class file from jsp

843838Oct 30 2006 — edited Nov 2 2006
i have a java package which reads values from property file. i have imported the package.classname in jsp file and also i have created an object for the class file like

classname object=new classname();

now iam able to access only the methods defined in the class but not the variables. i have defined connection properties in class file.

in jsp i need to use

statement=con.createstatement(); but it shows variable not declared.

con is declared in java class file.

how to access the variables?

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2006
Added on Oct 30 2006
6 comments
1,602 views