SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Map;
  2. import java.util.Set;
  3.  
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6.  
  7. import org.apache.log4j.Logger;
  8. import org.json.JSONObject;
  9. import org.springframework.stereotype.Component;
  10. import org.springframework.web.servlet.support.RequestContext;
  11. import org.springframework.web.servlet.view.AbstractView;
  12.  
  13.  
  14. @Component("ajaxResponse")
  15. public class JsonAjaxResponseView extends AbstractView {
  16.     private Logger logger = Logger.getLogger(JsonAjaxResponseView.class);
  17.  
  18.     @Override
  19.     protected void renderMergedOutputModel(Map map, HttpServletRequest request, HttpServletResponse response)
  20.             throws Exception {
  21.        
  22.         for(Map.Entry<String, Object> entry : map.entrySet()) {
  23.             System.out.println(entry.getKey());
  24.         }
  25.     }
  26. }
  27.  
  28. [ERROR] /opt/..../JsonAjaxResponseView.java:[23,52] incompatible types
  29. [ERROR] found   : java.lang.Object
  30. [ERROR] required: java.util.Map.Entry<java.lang.String,java.lang.Object>
  31. [ERROR] -> [Help 1]
RAW Paste Data
Top