Fórum

How to pop up a jsp page from a configuration page?

thumbnail
Cameron McBride, modificado 11 Anos atrás.

How to pop up a jsp page from a configuration page?

Expert Postagens: 269 Data de Entrada: 08/02/11 Postagens Recentes
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="cssStyle.help.text.title" />',
centered: true,
draggable: true,
modal: true,
height: 250,
width: 650,
}).plug(A.Plugin.IO, {uri: '/my-portlet/html/myPage.jsp'}).render();
dialog.show();
});
}
</script>

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