DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    huyun Guest

    How to open a new window in Servlet?


    I try to open a new window in Servlet. How can I do? I only know that in Javascript
    we can use "window.open(.....)" to open a new window, but I cann't I deal
    with this problem in Servlet. Could anyone help me?
    Thanks in advance.

  2. #2
    Paul Clapham Guest

    Re: How to open a new window in Servlet?

    You can't do any such thing in a servlet. The servlet is running on the
    server, not on the client machine where you want to open a new window.
    (That's why it's called "SERVlet".) All you can do in the servlet is to
    generate HTML to be displayed in the client's browser; the client controls
    where it appears. Now, if you want that HTML to be displayed in a new
    window, then you have to make the HTML that called the servlet say so.
    Remember, the client controls the server, not vice versa.

    PC2

    "huyun" <huyun.wuxi@263.net> wrote in message
    news:3b8f66bb$1@news.devx.com...
    >
    > I try to open a new window in Servlet. How can I do? I only know that in

    Javascript
    > we can use "window.open(.....)" to open a new window, but I cann't I deal
    > with this problem in Servlet. Could anyone help me?
    > Thanks in advance.




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