FEEDBACK.JSP:
<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%><%@ taglib uri= "http://java.sun.com/jsp /jstl/core "prefix=" C "%> <%string path = Request.getcontextpath (); String basepath = request.getscheme () + "://" + request.getservername () + ":" + request.getserverport () + path + "/"; String Imgpath = Request.getparameter ("imgpath") = = null? "": Request.getparameter ("Imgpath"). ToString (). Trim (); System.out.println (Imgpath);%><! DOCTYPE html><!--[if Lt IE 7]>
Conroller (Verbose DAO and Page class omitted):/** * Show feedback for different page numbers * @param request * @param response * @return * @throws Exception * * * @RequestMapping (value= "/queryfeedback Info ") Public Modelandview queryfeedbackinfo (httpservletrequest request,httpservletresponse response) throws Exception{utcfeedbackdao Utcfeedbackdao = new Utcfeedbackdao (), int currentpage = Request.getparameter ("PageNo") ==null ?1:request.getparameter ("PageNo"). ToString (). Trim () = = ""? 1:integer.parseint (Request.getparameter ("PageNo"). ToString (). Trim ()); pagination<utcfeedback> page = null;//Pagination Helper Class page = Utcfeedbackdao.findbycondition (currentpage,pagesize); HashMap map = new HashMap (); Map.put ("page", page); return new Modelandview ("App/temp", map);}
TEMP.JSP:<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%><%string path = Request.getcontextpath () ; String basepath = request.getscheme () + "://" + request.getservername () + ":" + request.getserverport () + path + "/";%>&L t;%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%><! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
jquery Ajax Coordination SPRINGMVCD for partial Refresh IV