cancel
Showing results for 
Search instead for 
Did you mean: 

how to control calling jsp in jspdynpage-portalapp.xml file

Former Member
0 Kudos

hi

i have created a jspdyn project. I have a jsp pages that will only be called at a certain point.

if i remove this statement

<b><property name="JSP" value="pagelet/display.jsp"/></b>

and add in this code in doProcessBeforeOutput():

<b>

IResource aResource = null;
aResource = request.getResource("jsp", "pagelet/display.jsp");

</b>

This does not work..The error:"page could no create ivew".

How can i call the jsp page when i need to?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You don't have to modify portalapp.xml to do that.

Based on a condition u cud use

this.setJspName("first.jsp"); or this.setJspName("second.jsp");

Use switch n case to check the condition.

Let me know if u need more..

Regards,

P.