create shortcut links from jahia pages to portlet pages

[email protected]
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <OF5A3D00B5.0472F381-ONC1257011.0020CBD5-C1257011.002663CC@commaro.com>
Hi!

I have to create some kind of shortcut links from Jahia pages to selected
pages of a portlet. I do have the original links like they are created from
the portlet, but to use them from a Jahia page I think I have to encode
them, the same way like Jahia's encodeURL-interceptor does?

Within my Jahia page, where I want to place the shortcut, I have tried to
instantiate somehow a ServletIncludeResponseWrapper

        ServletIncludeResponseWrapper responseWrapper = new
ServletIncludeResponseWrapper(
          response, "6921_31", "http://localhost:8080/jforum", jParams,
true, "UTF-8");

-- (currently most params are harcoded, just try&error)


my questions are:

-- is this basically the correct way or is there some easier one?

-- how can I get rid of the hardcoded parameter values, in special I think
I would need a jParams of the target page that contains the porlet, and
also the appUniqueId of the portlet?


P.S. I would need these encoded links also to intergrate portlet content
with the Jahia search!


____

kind regards
Wilhelm Berger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.