cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a jsp dynpage

Former Member
0 Kudos

Hi,

Please tell me how to create a jspdynpage in netweaver.

Please give me detailed steps

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I have written a wiki section on it for beginners.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/creating%2ba%2bsample%2bportal%2bproject

Hope it would help you too.

Regards,

Harini S

Former Member
0 Kudos

Hi Harini ;

Thankyou for your help. Please tell me that I already have a light_Headeriview.jsp page How to attach a dynpage to it.

Former Member
0 Kudos

HI,

If you already have a JSP file and want to call that from DynPage, then you can create a new dynpage inside that project and call to JSP using IResource object.

IResource resJSP = request.getResource(IResource.JSP,"jsp/displayPDF.jsp");

request.dispatchRequest(resJSP,response);

Regards,

Harini S

Former Member
0 Kudos

Hi

Harini thankyou so much. I have added the dynpage . I want to write a code to fetch data from r/3 on the dynpage store a string obtained from r/3 in sessions object and display the contents of the session object on the .jsp page

I already have this jsp page . So where will I have to write the above code so that whenever the .jsp page is initialised the the code written on the dynpage is executed.

In short tell me whether I have to write the codes on Do initialization event or at any other place.

Former Member
0 Kudos

HI,

You will have to write it inside doProcessBeforeOutput() method. Please read the help documentation (help.sap.com) on use of each method and the order how each method is called.

Regards,

Harini S

Former Member
0 Kudos

Hi Harini I am on the verge of solving my problem .When I paste above code given by you in the dynpage I get red marks on request and response object stating request /response cannot be resolved .Please help.

Former Member
0 Kudos

Hi,

Did you check the imports? If not, organize imports. Those will be resolved.

Regards,

Harini S

Answers (3)

Answers (3)

Former Member
0 Kudos
PradeepBondla
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Anzar,

click here

[http://ww2.avispublicsduparisien.com/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html|http://ww2.avispublicsduparisien.com/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html]

[http://ww2.avispublicsduparisien.com/irj/portalapps/com.sap.portal.pdk.htmlb.htmlbmanuals/docs/dynpage-01.html]

Regards

Flo

Former Member
0 Kudos