0
<script type="text/javascript">
function popupCreation(objct) {
<% popupURL.setParameter("resourceKey", newVideoCode); %>
var URL = '<%=popupURL%>';
var jspPageUrl = '<%=popupURL%>';
jspPageUrl = jspPageUrl + '&resourceKeyyy=';
jspPageUrl = jspPageUrl + objct;
alert(jspPageUrl);
AUI().use('liferay-util-window', 'aui-io-deprecated', function (A) {
modal = Liferay.Util.openWindow({
dialog: {
id: 'discountpage',
centered: true,
modal: true,
width: 550,
height: 50,
},
uri: URL
});
});
}
</script>
<%
PortletURL popupURL=r enderResponse.createRenderURL();
popupURL.setWindowState(LiferayWindowState.POP_UP);
System.out.println("dsfdsfdsp;fdpp------=--"+popupURL);
popupURL.setParameter("jspPage", "/html/viewvideoprice/details.jsp");
%>
我检索在第二JSP值检索值无法从URL
String resourceKey=ParamUtil.getString(request, "resourceKey");
//System.out.println("x is >>" +resourceKey);
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
System.out.println("currentCompleteUrl: "+currentCompleteUrl);
String[] partURL = currentCompleteUrl.split("&");
String currentURL = themeDisplay.getURLCurrent();
System.out.println(request.getContextPath());
String url = request.getRequestURI();
System.out.println(url);
你无法获得哪个参数? –
请详细解释第二个JSP如何被调用,你想要获取什么值,并且是你想要打印的url。谢谢 –
jspPageUrl = jspPageUrl + objct;在这里,我传递的是objct,我无法在第二个jsp中找到值 –