Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2007, 06:21 PM
Member
 
Join Date: Aug 2007
Posts: 1
nihar1213 is on a distinguished road
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>
<%
}
%>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
disable parent window ismailsaleh AWT / Swing 1 01-08-2008 01:15 AM
Changing Java for projects JavaForums Java Blogs 0 01-07-2008 10:40 AM
Changing icon of JOptionPane mew New To Java 3 12-21-2007 09:01 AM
Calling constructor of parent class from a constructor Java Tip Java Tips 0 12-19-2007 11:10 AM
Help creating a changing grid adlb1300 New To Java 11 10-24-2007 03:41 PM


All times are GMT +3. The time now is 06:16 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org