Hi,
the current page id can be retrieved as an Integer attribute
"org.jahia.pageid" stored in the request.
Depending of the page id, you may then forward or insert specific welcome
file and still having one single main welcome file.
Support of multiple welcome files is not available yet.
<%
Integer pageId = (Integer)request.getAttribute("org.jahia.pageid");
<jsp:include page="<%=pageId.intValue() + "_welcome.jsp" />
%>
Regards,
Khue Nguyen
----- Original Message -----
From: "Patrick Gelin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 04, 2005 12:41 PM
Subject: How to manage differente welcome_file for a webapp depending jahia
page context...
Hi,
I writted a small webapp with three view. The problem now is to install the
webapp into my Jahia site but incude it into three differents pages,
showing a different view for each page...
I'm wondering if there is an API to retrieve the page context from the
webapp, in order to get the page number or the value of a parameter
indicating me which view my webapp need to display?
Is there an other solution using the <welcome_files> list parameter inte
web.xml. Following the Web Application Developer Guide I used only one
welcome_file (index.jsp)...
Thanks for your help.
--
Patrick Gelin - Collaborateur Scientifique
Office de la Statistique et de l'Informatique Scolaires (OSIS)
CH-2300 La Chaux-de-Fonds
Tél.: +41 (0)32 919 79 13
Email: [EMAIL PROTECTED]