Skip to Content
author's profile photo
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 03, 2005 at 07:53 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded