Hi guys!! In my project i have to check in the datastore if an e-mail is
already present through this rest request: (using Spring Mvc+Json)
@RequestMapping(method = RequestMethod.GET, value =
"/list_user/{email}", headers = "Accept=application/json")
public @ResponseBody boolean getComment(@PathVariable String email)
throws Base64DecoderException{
email = new String(Base64.decode(email));
String email2 = email.toLowerCase();
int compareResult = email.compareTo(email2);
if (compareResult != 0)
return false;
EmailValidator ev = EmailValidator.getInstance();
if (!ev.isValid(email))
return false;
else
return true;
}
Locally the request return a boolean value as planned but on appspot it
doesn't return a value... Can anybody help me please?
Another question: Can i return a http header using a GET?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.