pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Serré <jerome.michel.se...@gmail.com>
Subject Hello, I'm a new user.
Date Thu, 15 Apr 2010 09:25:23 GMT
Hello,

 

I begin with pivot and i want to accede to the session in the applet.

I know send a objet from applet to servlet (QueryPost), but I don’t know to
get the response (an object). I think to use the session.

 

APPLET :

PostQuery postQuery = new PostQuery("192.168.1.5", 8000, "/vsm/Login",
false);

postQuery.getParameters().put("login", login.getText());

postQuery.getParameters().put("motp", motp.getText());

postQuery.getParameters().put("page", "login");

postQuery.execute();

GET THE RESPONSE ???

 

SERVLET :

public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {

HttpSession session = request.getSession();

       /login

       String d = (String)request.getParameter("login");

       System.out.println("LOGIN: " + d);

       //password

       d = (String)request.getParameter("motp");

       System.out.println("MOT DE PASSE: " + d);

SEND THE RESPONSE ???      

 

Thank you for your help

__

Cordialement

Jérôme Serré

 



Mime
View raw message