2
SomeActionBean.java의 추가 된 메소드가 Google 애플리케이션 엔진에서 작동하지 않는 이유를 모르겠습니까? Localy는 완벽하게 실행됩니다. 솔루션을 찾기 위해 어디에서 아이디어를 얻을 수 있습니까?Stripes, GAE : 다른 메소드 처리 (POST) 구현 방법
/**
* @return Page to display, filled with correct data
*/
@DefaultHandler
public Resolution welcome() {
Resolution fd = new ForwardResolution(VIEW);
HttpServletRequest request = this.ctx.getRequest();
if(request.getMethod() == "POST") {
String content = getRequestContent(request);
updateData(content);
}else if (request.getMethod() == "GET"){
String ct = request.getContentType();
if(("application/json").equals(ct))
try {
getNotesJson(); //fill returnJson global variable
fd = new JSONResolution(returnJson);
//TODO Spread to other entities
} catch (JSONException e) {
e.printStackTrace();
}
}
return fd;
}
당신이 얻을 오류가 무엇입니까 : 그들은 으로 비교해야
자바 문자열이되어 있지 프리미티브 따라서는 방법과 같다? 스택 추적을 게시 할 수 있습니까? – Kdeveloper
그냥 알아 냈어. 그것의 문제는 if와 ==를 비교합니다. Kdeveloper, 의견을 주셔서 감사합니다, 당신이 대답을 쓰면 나는 그것을 받아 들일 것입니다. – Solata