cancel
Showing results for 
Search instead for 
Did you mean: 

How to Write a Simple Bean for JDBC and Consume it in Dynpro

Former Member
0 Kudos

Hi all,

I am able to access the Oracle Database through plain JDBC.

but want to fine tune the application using the Simple Beans for JDBC.

So anybody having idea about how to write a Bean and using importing it in

the WebDynpro project?

Any suggestion is welcome!

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

Hi Abhay,

You can create a java bean file like this:

Select the Navigator view -- > Select the Projec --> Right click --> New --> Other --> General ---> here u will get the option to create a JAVA file.

Just create s simple JAVA file. Write whatever bean content you want to writeinthis JAV bean class. Please make sure that your class is public so that you can use it inside your webdynpro applicatiion easily.

Note : Put your file only under src folder OR create one folder (say beans) and then put your java bean file here so that you have clear sepeartion of all project classes and Bean classes.

In webdynpro you need not have to do anything. Just create an object of your class and use the bean setter and getter methods. Just type the class name and press CTRL+ SPACE and that will import your bean class in your webdynpro JAVA class.

I hope this will solve your issue. Please revert back if you need any further help.

Thanks and Regards,

Pravesh

Former Member
0 Kudos

Thanks Pravesh,

Well, i have absorbed what you have said now will try to implement it!

Will get back to you for further help.

Thanks & regards,

Abhay

Answers (0)