i'm not saying that we need cool UI, i'm just supprize that servlet a server
side programming can do such thing. without the help of applets
here the code

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.swing.JOptionPane.*;

public class SomeServlet extends HttpServlet {
  public void doGet(HttpServletRequest request,
                    HttpServletResponse response)
      throws ServletException, IOException {
       PrintWriter out = response.getWriter();

    String display;

    display = JOptionPane.showInputDialog("enter name");
    out.println("bla bla bla " +display );

  }
}





----- Original Message -----
From: "Sriram Narayanan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 4:30 PM
Subject: Re: Servlet with Swing


> If you want to display "cool"User interfaces on the browser side, then use
Swing in applets. And since you insist on communicating with a servlet,
communicate
> using URLConnection.
>
> Really, servlets are intended for server side work, and can be used as
such only, and not for cool UI's like you have been saying for the past few
days.
>
> Sriram
>
> >Simon Chia wrote:
> >
> >> no no ... u can give it a try ur self.. i'm talking about servlets..
not
> >> applets, u can give it a try...
> >> once the page loads, it loads the swing files also. u can use swing to
get
> >> user input and display it out on the screen.. u can even use to verify
> >> username and password(something which i havent try).. its a world of
wonder
> >> u can try with swing and servlets.
> >
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to