Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Cameron McBride
How to pop up a jsp page from a configuration page?
November 12, 2012 4:30 PM

Cameron McBride

Rank: Expert

Posts: 273

Join Date: February 8, 2011

Recent Posts

I am wanting to popup a page from my configuration.jsp which is displayed by a ConfigurationActionImpl class. I have tried a dozen ways to generate a url to my jsp page and have not been successful. Here is a snippet that does work great.

<script type="text/javascript" charset="utf-8">
function onHelp(){
AUI().use('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) {

var dialog = new A.Dialog({
title: '<spring:message code="" />',
centered: true,
draggable: true,
modal: true,
height: 250,
width: 650,
}).plug(A.Plugin.IO, {uri: '/my-portlet/html/myPage.jsp'}).render();;

What can I replace "/my-portlet/" with so it is dynamically generated. I also do not use any jsp scriptlets on the page.