Results 1 to 1 of 1
- 08-03-2007, 04:21 PM #1
Member
- Join Date
- Aug 2007
- Posts
- 1
- Rep Power
- 0
How to create a new pop up window from jsp without changing the URL address of parent
I have a button in my jsp page.
When I click on it I get the pop up window.
Iwant to keep the url address of the parent window
from which the pop up is generated.
But the url of the parent window is changed when the pop up is generated.
String url = PortalUtil.getPageUrl(ScopedServletUtils.getOuterR equest(getRequest()),
getResponse(), PortalPageConstants.ADVISER_SEARCH_RESULTS_PAGE, null);
this is i am setting in my controller.. along with
getRequest().setAttribute("popup","true");
getRequest().setAttribute("url",url);
and for parent window:
<%
String popUp = (String)request.getAttribute("popup");
String url = (String)request.getAttribute("url");
if("true".equalsIgnoreCase(popUp)){
%>
<script language="JavaScript">
window.open('<%=url%>','AdviserSearchResults','wid th=800,height=750,left=20,top=20,menubar=no,locati on=no,resizable=yes,scrollbars=yes,status=yes');
</script>
<%
}
%>
Similar Threads
-
disable parent window
By ismailsaleh in forum AWT / SwingReplies: 1Last Post: 01-07-2008, 11:15 PM -
Changing icon of JOptionPane
By mew in forum New To JavaReplies: 3Last Post: 12-21-2007, 07:01 AM -
Calling constructor of parent class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 09:10 AM -
Help creating a changing grid
By adlb1300 in forum New To JavaReplies: 11Last Post: 10-24-2007, 01:41 PM


LinkBack URL
About LinkBacks

Bookmarks