How to open a new window in Servlet?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to open a new window in Servlet?

  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.




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center