cancel
Showing results for 
Search instead for 
Did you mean: 

When I need to Create Component

Former Member
0 Kudos

Hi Gurus,

I have few doubts on EP implementation Can plz help me to clear all.

1. When do we need to implement JspDynpage?

2. When we need to create AbstractPortalComponent?

Using AbstractPortalComponent how to call a Jsp file?

Please help on these doubts. Thanks in advance.

Ian

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI Ian....

JspDynPage is used when u segregate the <b>controller</b> from the <b>Presentation</b>

it represents the MVC architecture....

u have the <b>Model</b> to control data flow.....and jsp to present (<b>View</b>) and JspDynPage as the <b>Controller</b>...........

thats how it works...

where as the Abstract Portal Component doesnt follow this architecture.....

u write the presentation sa well as the business logic completely in the <b>doContent() </b>method......

it depends on ur choice as to which method to follow based on ur requirements or business logic...

Now..as to call the jsp from an Abstract Component....u can get the HttpServletRequest from the IportalcomponentRequest...and the use it to sendRedirect() to a jsp page....

hope this helps....

Regards,

Sudheer

Former Member
0 Kudos

When you want to display your interface within JSP page you must use JspDynpage

When you want to display directly Strings it´s easier to use the doContent event of a AbstractPortalComponent.

If you want to use a jsp file use a JspDynpage.

Regards

Former Member
0 Kudos

Hi Ian,

Check this rather thouroughly blog:

and this help topic:

http://help.sap.com/saphelp_nw04/helpdata/en/68/ff3c41325fa831e10000000a1550b0/frameset.htm

These describe rather well the differences, hope it helps!