Hi Claudio,
You can include selectors between the handle and the extension. This would
look like: /abc/home.detail-00.html
In your template you can access the selectors with
String selector
=
Resource.getSelector((HttpServletRequest)pageContext.getRequest());
String[] selectors = selector.split("\\.");
to decide what to display. And because this is part of the URL the result
will even be cached
Ralf
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 15. März 2007 12:39
An: [email protected]
Betreff: [magnolia-user] Possibility to call a JSP over URL to display some
data
Hi List,
We have some special requirement to show only part of the paragraph's
content in a page. The user has then to click a "details" link which
should open a new page and display the rest of the paragraphs content.
This approach is used for an event list, which only shows compact data
like title and date, and a details page for each event with more
information.
I want to avoid to create a separate page for each event, so my idea was
to create a JSP page that receives the handle of the paragraph as an URL
parameter, loads the paragraph and displays it.
I tried o generate "Detail-Links" to such a JSP, however magnolia
intercepts them, tries to load a page from the website repository and
fails because there is no page called /templates/jsp/eventdetail.jspx
How can I avoid this? Is there a way to provide links to JSP's with URL
parameters that are not intercepted by Magnolia?
Thanks for any input
Claudio
********************************************
IPH Informatik AG
Herr Claudio Greuter
Lagerhausstrasse 9
8400 Winterthur
Switzerland
Tel: +41 (0)52 203 26 72
Fax: +41 (0)52 233 94 71
Email: [EMAIL PROTECTED]
********************************************
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------