on 03-22-2009 6:35 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.