users@glassfish.java.net

Re: incoming client HTTP POST

From: <forums_at_java.net>
Date: Tue, 6 Sep 2011 17:28:36 -0500 (CDT)

 

@POST
  @Consumes("application/x-www-form-urlencoded")
  @Produces("text/html")
  @Path("/myTestPath")
  public String createConsumerAccFromMdev(
                               @FormParam("email") String
email
  {
     System.out.println("createConsumerAccFromMdev: Entering ...");
     System.out.println("createConsumerAccFromMdev: email ==" + email);
     if (email == null)  {
        return "-99";
     } else {
        return "123";
     }
  }

 


--
[Message sent by forum member 'arthury']
View Post: http://forums.java.net/node/840568