Skip to Content
avatar image
Former Member

How to call one JSP from another JSP

Hi,

I am trying to redirect to a jsp from another JSP. When I use HttpServletResponse.sendRedirect(componentRequest.getPrivateResourcePath()+"/pagelet/newPage.jsp"); I get Page cannot be dispayed error.

I might probably have to use IResource. Not sure how to redirect to another JSP using IResource.

Any ideas??

Any help is highly appreciated.

Thanks

Lakshmi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 23, 2004 at 02:27 AM

    Does the target of the redirect display when you call it directly?

    Is the redirect really the last thing you need to do in that jsp?

    Once the client get the redirect it is gone, does it have everything it needs to make the next jsp run properly?

    Nick

    Add comment
    10|10000 characters needed characters exceeded