And you need a jData, true?
If yes, you need to send the siteId and the currentPageId in the http
request and you can do something like this in your include/test.jsp:
try {
siteId = Integer.parseInt(request.getParameter("siteId"));
} catch (NumberFormatException nfe) {
logger.debug("Could not get siteId: " + nfe);
}
int currentPageId = -1;
try {
currentPageId = Integer.parseInt(request.getParameter("currentPageId"));
} catch (NumberFormatException nfe) {
logger.debug("Could not get currentPageId: " + nfe);
}
if ((siteId != -1) && (currentPageId != -1)){
JahiaUser user = (JahiaUser)
request.getSession().getAttribute(ParamBean.SESSION_USER);
JahiaSite site = JahiaSitesBaseService.getInstance().getSite(siteId);
AdminParamBean jParams = new AdminParamBean(request,response,
getServletConfig().getServletContext(),Jahia.getSettings(),
System.currentTimeMillis(),ParamBean.GET_METHOD,site,user,
ContentPage.getPage(currentPageId));
jParams.setUser(user);
jParams.setOperationMode(ParamBean.EDIT);
JahiaData jData = new JahiaData(jParams);
}
At 22.06.2005 15:47, you wrote:
I want to do something like :
window.open('jsp/include/test.jsp')
and not a jahia page.
-----Original Message-----
From: Philippe Vollenweider [mailto:[EMAIL PROTECTED]
Sent: 22 June 2005 15:45
To: [email protected]
Subject: [SPAM : SUSPECTED LOW] Re: Jahia
javascript:window.ope('jspPath')
Hello,
What dou you want to open into your popup? a Jahia page, an image,
something else?
Philippe.
At 21.06.2005 10:53, you wrote:
>Hello,
>Can someone help me ?
>I want open a popup throw a new template by a javascript command :
>window.open...
>The problem is that window.open, or OpenJahiaWindow need a pageId as a
>parameter, and me I have a only the jsp's path.... (include/tot.jsp).
>
>Has anyone an idea ??
>
>Thanks ..
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company