Skip to content

프레임웤에서 exception처리 부분에서 return null;로 마무리 된 부분. #2

Description

@jeongjaehong

프레임웤에서 exception처리 부분에서 return null;로 마무리 된 부분에서 log level을 devug로 설정했을때 디버그용 메시지를 보여줬으면 좋겠네요..^^;

action.properties설정하는게 바뀐걸 까먹고 셈플 프로젝트 하나 만들다가 헤맸어요..ㅋ ㅜㅜ

요런 부분들...^^; 처음 적용할때 좀 난해할 수도 있을것 같아요..

private String getActionClass(String actionKey) {
    ResourceBundle bundle = (ResourceBundle) getServletContext().getAttribute("action-mapping");
    try {
        return ((String) bundle.getObject(actionKey)).trim();
    } catch (MissingResourceException e) {
        getLogger().error("error actionkey is " + actionKey);
        getLogger().error("error action is " + ((String) bundle.getObject(actionKey)).trim());
        getLogger().error(e.getMessage());
        return null;
    }
}

모바일(android)기기과 xml or json 으로 자료및 처리결과를 주고 받는 셈플을 만들어 보려고 하는데..
android에서 서비스 호출하고 결과 받을때 어떻게 하면 좋을까요? ^^;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions