掲示板

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

thumbnail
11年前 に Cameron McBride によって更新されました。

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

Expert 投稿: 269 参加年月日: 11/02/08 最新の投稿
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.