cancel
Showing results for 
Search instead for 
Did you mean: 

Calling JSP from a Portal Application.

Former Member
0 Kudos

Hi guys...

am new to EP appliation development. Can anybody tell me the way to access JSP from a portal application. Please send me the code snippets of the same.

Thx.

Vicky

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Vicky,

Please check the code..

IResource res = request.getResource(IResource.JSP, "jsp/test.jsp");

String url = res.getResourceInformation().getURL(request);

check following thread for more info.

reward points if helps

cheers

dev

0 Kudos

Hi,

It is not clear, what you meant by accessing JSP from Portal Application.

What is a Portal Application?

You can consider a Portal Application is a par file or EP Project. So it is just a container of Portal Components and Portal Services.

So do you want to show an exisiting JSP as a Portal Component?

If so then the simplest way is to use AbstractPortalComponent, check this for more:

http://help.sap.com/saphelp_nw70/helpdata/EN/8a/4dae42cb9f0f31e10000000a1550b0/frameset.htm

Regards,

Praveen Gudapati

Former Member
0 Kudos

Hi

u better to call jsp in onAction method

eg:

doBeforOutput(){

Form myform=this.getForm();

}

public onAction(Event event) throws pageException{

this.setJspName("ur jsp which u want to call");

}

pravesh_verma
Active Contributor
0 Kudos

Hi Vicky,

What you want to do can be done using <b>JSPDynpages</b>. This comes under EP application development. In JSPDynpages you can very easily use the JSP with the EP application. For reference please visit the following site:

<b>http://help.sap.com/saphelp_nw04/helpdata/en/08/80f34027ef8d38e10000000a155106/frameset.htm</b>

This will be really helpful for you. If you want some more clarification then please let me know. I wish this will solve your problem.

Regards

Pravesh