on 06-25-2007 12:43 PM
Hi all,
I need to develop a application in PDK. It includes executing some BAPI's and some business logic. For this purpose, do i need to create a EJB Module project or simple JSP project is sufficient. Please let me know which is better option.
Hi,
You can use scriplets in jsp s to write the business logic.Although it is recommended to write the business logic and do the database conn in the dao or ejb if you use the MVC architecture. If you write the business logic in jsp after some time it cannot be maintained but if the business logic is written in ejb for a dao.... it is easy to maintain..... as we separate the presentation layer from the business logic layer.
please give points if the ans is helpfull.
Thanks
ritu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can write the bussiness logic in a JSP page, but it is not recommended as per the MVC architecture. There will be some problems with maintenance.
Regards,
Jashua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well I suppose you create both projects.
If you work with the Developer Studio create a WebModule project where you develop the parts for the presentation layer (mostly JSPs or simple HTML-Pages) and an EJB project containing Entity Beans and Session Beans, where the Entity Beans hold data from a database and the Session Beans contain the business logic.
You will get a connection to the Session Beans by making a JNDI lookup (either directly in the JSPs or (better style) in a normal java bean which you use via the 'useBean' tag in a JSP).
Regards,
Torben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.