DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    5

    New page in New Window

    Using Java, how can I redirect to a new page, which should appear in a new window?

  2. #2
    Join Date
    Jan 2005
    Location
    London
    Posts
    10
    We do this using code as follows in a jsp:

    where href is the url you want to go to

    <%
    out.print("<a href=\"javascript: w=window.open(\'"+href+"\', \'\',\'resizable=1,scrollbars=1,menubar=1,width=1000,height=660\'); w.focus()\"><b>Click here to launch new page+"</b></a>");
    %>

    However I have had problems with this keeping the session objects and have not found a way round keeping the same session or interacting with it. Hope that helps.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links