• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >JSP > jsp页面 列表 展示 ajax异步实现方法

jsp页面 列表 展示 ajax异步实现方法

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了ajax实现jsp页面表格,jsp页面ajax,jsp ajax,jsp ajax实例,jsp ajax局部刷新等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

1. 服务端先返回页面基本结构(如message.jsp),

<%@ page language="java" contentType="text/html; charset=utf-8"
  pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
      + path + "/";
%>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie ie6 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>  <html class="ie ie7 lt-ie9 lt-ie8"    lang="en"> <![endif]-->
<!--[if IE 8]>  <html class="ie ie8 lt-ie9"        lang="en"> <![endif]-->
<!--[if IE 9]>  <html class="ie ie9"           lang="en"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-ie">
<!--<![endif]-->

<head>
<!-- Meta-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title>消息中心</title>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]><script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script><script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script><![endif]-->
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="<%=path %>/app/css/bootstrap.css">
<!-- Vendor CSS-->
<link rel="stylesheet" href="<%=path %>/vendor/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%=path %>/vendor/animo/animate+animo.css">

<!-- START Page Custom CSS-->
<!-- Data Table styles-->
<link rel="stylesheet" href="<%=path %>/vendor/datatable/extensions/datatable-bootstrap/css/dataTables.bootstrap.css">
<link rel="stylesheet" href="<%=path %>/vendor/datatable/extensions/ColVis/css/dataTables.colVis.css">
<!-- END Page Custom CSS-->
<!-- App CSS-->
<link rel="stylesheet" href="<%=path %>/app/css/app.css">
<link rel="stylesheet" href="<%=path %>/app/css/beadmin-theme-c2.css">
<link rel="stylesheet" href="<%=path %>/vendor/sweetalert/lib/sweet-alert.css" />
<link rel="stylesheet" href="<%=path %>/css/page.css"/>

<!-- Modernizr JS Script-->
<script src="<%=path %>/vendor/modernizr/modernizr.js" type="application/javascript"></script>
<!-- FastClick for mobiles-->
<script src="<%=path %>/vendor/fastclick/fastclick.js" type="application/javascript"></script>.
 <script>
  var basePath = '<%=basePath %>';
  var pageNo = ${page.pageNo};
  var totalCount = ${page.totalCount};
  var totalPage = ${page>totalPage};
  var pageSize = ${page.pageSize};
</script>
</head>

<body>
<!-- START Main wrapper-->
<div class="wrapper" > 

 
 <!-- START Main section-->
 <section> 
  <!-- START Page content-->
  <div class="content-wrapper" style="margin-left:-250px;margin-top:-40px;">
   <h3>消息中心
   <!-- <div style="float:right; margin-top:5px;" class="form-group">
         <button type="button" onclick="$('#myModal').modal({backdrop: 'static', keyboard: false});;" class="btn btn-labeled btn-success"> <span class="btn-label"><i class="fa fa-plus"></i> </span>添加</button>
         
        </div>-->
       <small>消息管理</small>
   </h3>
   
   <!-- START panel--> 
   
   <!-- START DATATABLE 3-->
   <div class="row">
    <div class="col-lg-12">
     <div class="panel panel-default">
       <div class="panel-heading" style="border-bottom:1px solid #eee;">
       <form class="form-inline" id="searchForm" method="post" action="<%=path %>/page/messageSearch.action">
        <div class="form-group"> <b>创建时间:  </b>
         <div class="datetimepicker input-group date mb-lg" data-pick-time="false">
          <input type="text" class="form-control" id="searchDateStart" name="searchDateStart" value='' disabled="disabled">
          <span class="input-group-addon"> <span class="fa-calendar fa"></span> </span> </div>
         <span style="margin-top:-8px;">—</span>
         <div class="datetimepicker input-group date mb-lg" data-pick-time="false">
          <input type="text" class="form-control" id="searchDateEnd" name="searchDateEnd" value='' disabled="disabled">
          <span class="input-group-addon"> <span class="fa-calendar fa"></span> </span> </div>
        </div>
        <div class="form-group">
                <b>接收者: </b>
                <input type="text" class="form-control mb-lg" id="receiver" name="receiver" value=''>
              </div>
        <div class="form-group"> <a style="margin:-10px 0 0 5px; float:left;" href="javascript:void(0);" class="mb-sm btn btn-primary" type="button" id="searchMessage">搜索</a> </div>
         <input type="hidden" id="pageNo" name="pageNo" value=''>
       </form>
      </div>
      <div class="table-responsive">
       <table class="table table-bordered table-hover dataTable no-footer" id="table-ext-1" >
        <thead>
         <tr>
          <th style="width:300px;">描述</th>
          <th class="sorting center" tabindex="0" aria-controls="datatable1" rowspan="1" colspan="1" style="width: 86px;" aria-label="Rendering engine: activate to sort column ascending">发送者</th>
          <th class="sorting center" tabindex="0" aria-controls="datatable1" rowspan="1" colspan="1" style="width: 86px;" aria-label="Rendering engine: activate to sort column ascending">接收者</th>
          <th class="sorting center" tabindex="0" aria-controls="datatable1" rowspan="1" colspan="1" style="width: 86px;" aria-label="Rendering engine: activate to sort column ascending">创建时间</th>
          <th class="th150 center">操作</th> 
         </tr>
        </thead>
        <tbody id="message_body">
        
        </tbody>
        <tfoot>
         <tr> </tr>
        </tfoot>
       </table>
      </div>
      
      <div class="panel-footer">
       <div class="row">
        <div style="line-height:35px;" class="col-lg-3">
         <div class="input-group pull-left" id="message_showLines"> </div>
        </div>
        <div class="col-lg-9"></div>
         <div class="tcdPageCode"></div>
       </div>
      </div>
     </div>
    </div>
   </div>
   <!-- END DATATABLE 3--> 
   
  </div>
  <!-- END Page content--> 
 </section>
 <!-- END Main section--> 
</div>
<!-- END Main wrapper--> 

<!-- START modal-->
<div id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" class="modal" >
 <div class="modal-dialog" style="width:600px;">
  <div class="modal-content">
   <div class="modal-header">
    <button type="button" data-dismiss="modal" aria-hidden="true" class="close">×</button>
    <h4 id="myModa



 
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • jsp页面 列表 展示 ajax异步实现方法
  • jsp简单实现页面之间共享信息的方法
  • ajax+jsp草稿自动保存的实现代码

相关文章

  • 2017-05-11jsp页面使用${}不起作用的解决方法
  • 2017-05-11jsp action中保存和修改的关系
  • 2017-05-11JSP实现从数据库导出数据到Excel下载的方法
  • 2017-05-11Jsp连接Access数据库(不通过建立ODBC数据源的方法)
  • 2017-05-11JSP通用高大上分页代码(超管用)
  • 2017-05-11JSP 连接MySQL配置与使用
  • 2017-05-11JSP自定义标签简单入门教程
  • 2017-05-11JSP学习之数据库开发小结
  • 2017-05-11JDK 1.5之Generics
  • 2017-05-11jsp SmartUpload 中文乱码问题解决

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • 利用Java实现zip压缩/解压缩
    • JSP安全性初探
    • jsp response.sendRedirect不跳转的原因分析及解决
    • jsp实现将信息放入xml中的方法
    • 用js绘图
    • 通过过滤器(Filter)解决JSP的Post和Request中文乱码问题
    • jsp中自定义Taglib详解
    • struts json 类型异常返回到js弹框问题解决办法
    • jsp 对request.getSession(false)的理解(附程序员常疏忽的一个漏洞)
    • Java 获取URL的内容

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有