2 Replies Latest reply on Jul 19, 2005 6:46 AM by P B

    Acessing a JSP from another JSP

    P B Newbie

      Hi,


      In the portlet I developed I included a JSP which has few buttons.If I click one of those buttons another JSP should be opend in the same portlet.How can I do this?Can anybody help me?

      brp

        • 1. Re: Acessing a JSP from another JSP
          Woodler Expert

          use the portlet to create render or action URLs that point back to this portlet. (renderResponse.createActionURL()). The URL can accomodate a parameter that indicates what jsp to delegate to (renderURL.setParameter("jsp", "jsp1")

          You can then set the stringified version of these URLs as request attributes, and request dispatch to a jsp . the jsp in turn can get the URLs back from the request attribute(s) and fill them in as the form action or a href ....

          • 2. Re: Acessing a JSP from another JSP
            P B Newbie

            Can you please explain me with an example.I tried as you told but I am not able to go further.Plz. do help me by giving an exmple.

            brp