jquery Ajax with Springmvc for partial refresh Div

Source: Internet
Author: User

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 (Specific DAO and page classes 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 + "/";%&GT;&L t;%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%><! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >


jquery Ajax with Springmvc for partial refresh Div

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.