on 04-05-2006 1:27 PM
Im using EJBs to access database...data is getting stored in the database...but i dnt know how to retrieve it...webDynpro is a totally new environment for me..it would be a great help if someone can help me solve my problem...
regards,
Sonal
- start with "import JavaBean model" (importing model)
- put model in Used Models
- bind model with controller (web dynpro components-> double click on <application name>
- bind view with controller (same vindow)
- apply template (table for reading data) in view
and you are redy for start.
Eq
your EJB is MyEJB, and there is some function myFunction() with Vector as return (Vector contains MyEJB objects)
now in controller put (eq in wdDoInit())
MyEJB myObject = new MyEJB()
wdContext.current<NodeName>.bind(myObject.myFunction());
good luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonal,
Well you can go through the follwing tutorial about using EJBs in WebDynpros. It also gives you an idea of you can store data in database tables.
Its a simple calculator Web application.The calculated bonus must also be recorded in a database table : Ejbs in WebDynpros PDF
or the details of the complete tutorial with a readymade project is also available at sdn webdynpro tutorials :
EJBs in WebDynPros
And you can find many more WebDynPro tutorials under :
SDN WebDynPro Tutorials
Hope this helps you.
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.