- struts2简介
活着_3840
Struts2是一个基于MVC设计模式的Web应用框架,它本质上相当于一个servlet,在MVC设计模式中,Struts2作为控制器(Controller)来建立模型与视图的数据交互。struts2使用的是拦截器的概念,结合各种过滤器获取url,与struts1最大的区别在于1是单例的(所有请求共享一个实例),2是多例的(一个请求一个实例),还引入“值栈”概念,可以达到与servletAPI完全
- 重温经典struts1之自定义Filter(拦截器)解决中文乱码问题
JavaWeb学起来
struts1Struts1
重温经典struts1之自定义Filter解决中文乱码问题前言Filter(拦截器)需求具体实现步骤1.自定义CharsetEncodingFilter拦截类2将自定义CharsetEncodingFilter注册到web.xml3编写测试用的login页面和处理逻辑总结前言页面输入的中文,Action处理完后,页面回显时出现乱码。为什么会出现乱码,因为,页面发来的请求编码格式与服务器解析请求的编
- springmvc 常见面试题
_isPan
Java框架
1、讲下SpringMvc的核心入口类是什么,Struts1,Struts2的分别是什么SpringMvc的是DispatchServlet,Struts1的是ActionServlet,Struts2的是StrutsPrepareAndExecuteFilter2、SpringMvc的控制器是不是单例模式,如果是,有什么问题,怎么解决是单例模式,所以在多线程访问的时候有线程安全问题,不要用同步,
- 重温经典struts1之自定义全局异常处理类处理异常以及<exeception>标签的配置
JavaWeb学起来
struts1Struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言前面的文章,我们学习了,Action类中调用Service,通过try…catch代码块,catch自定义异常类,通过ActionMessage类,进行错误信息页面显示,今天我们来学习,自定义全局异常处理类,无需try…catch代码块,通过配置struts-config.xml文件中的标签,统一处理异常,将错误信息显示到页面需求
- SSH框架之Struts2第一篇
小小一技术驿站
1.2Struts2的概述:Struts2是一个基于MVC设计模式的WEB层的框架.1.2.1常见web层框架Struts1,Struts2,WebWork,SpringMVCStruts本质上相当于一个servlet,在MVC设计模式中,Struts2作为控制器(Controller)来建立模型与视图的数据交互.其全新的Struts2的体系结构与Struts1的体系结构差别巨大.Struts2是
- 重温经典struts1之国际化(I18N)
JavaWeb学起来
struts1struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言拿Google网站来举例,在世界上不同国家和地区,登陆Google网站,网站上都会显示本国家语言,它是怎么做到的,就是我们今天要讲的:国际化,也称i18ni18n是Internationalization的简称,是由第一个字母(i)+单词的字母数(18)+最后一个字母(n)组成的。简单的说,按照操作系统或浏览器设置的语言,切换各语
- 重温经典struts1之ActionMessage(s)类结合html标签完成页面显示异常消息和正常提示消息
JavaWeb学起来
struts1struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言今天我们来学习,怎样在页面显示,java端抛出的异常消息或正常处理完了时的提示消息具体做法,就是我们今天的主题,ActionMessage(s)类结合或标签来完成ActionMessage类struts提供ActionMessage类,来保存单条异常信息和正常提示信息,一个ActionMessage类的实例,对应消息资源文件中的一
- 重温经典struts1之自定义转换器及注册的两种方式(Servlet,PlugIn)
JavaWeb学起来
struts1Struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言Struts的ActionServlet接收用户在浏览器发送的请求,并将用户输入的数据,按照FormBean中定义的数据类型,赋值给FormBean中每个变量,赋值的过程是struts提供的基本数据(int,double,boolean,string,java.sql.Date等)类型转换器完成的,有些数据的类型转换,例如画面上输
- Java面试题之Struts2
周小鑫001
1.简单的介绍一下Struts2struts2框架框架是一个按照MVC设计模式设计的WEB层框架,是在Struts1和WebWork的技术基础上进行了合并的全新的框架,其全新的Struts2的体系结构,与Struts1的体系结构差别巨大,Struts2以WebWork我为核心。采用拦截器的机制来处理用户的请求这样的设计也使得永无逻辑控制能够与ServletAPI完全脱离开2.Struts2中Act
- 重温经典struts1之搭建环境
JavaWeb学起来
Struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言今天参加了一个项目,什么项目?struts1的项目,什么?!现在还有struts1的项目,读到这里你是不是和我一样惊讶,记得上次做struts1的项目还是在七八年前,是的,现在还真的有struts项目,并且还是大公司在用,好吧,既然有市场,我们还是重温下经典的struts框架吧。一、Struts是什么?简单说下struts,它是M
- 重温经典struts1之常用标签
JavaWeb学起来
struts1struts
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言上一篇,我们学习了struts的基本概念,怎样搭建struts开发环境,从编写formbean,action到jsp页面,以及怎样将他们配入到struts-config.xml文件中,实现通过浏览器发送请求,将处理结果返回页面简单的login功能。今天我们来学习下struts为我们提供的常用标签,标签是视图技术,主要用在jsp中,
- 重温经典struts1之文件上传
JavaWeb学起来
struts1struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言今天来学习下,每个项目都会有的文件上传功能,看看struts是怎么实现的。步骤编写三个jsp页面,一个是跳转到文件上传页面,一个是文件上传用,再一个是上传成功页面重点1:form的enctype属性,设置成multipart/form-data默认的是application/x-www-form-urlencoded重点2:文件选
- 重温经典struts1之八种页面跳转或请求转发的方式
JavaWeb学起来
struts1struts1
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档前言今天来学习下,struts1框架中实现页面跳转或请求转发的八种方式。页面跳转方式request的Dispatcher方法这种方式在学习servlet编程中,我们学习过,适合任何项目的手动页面跳转或请求转发action代码如下request.getRequestDispatcher(“login.jsp”).forward(requ
- Spring MVC
空心木偶☜
springmvcjava
SpringMVC属于SpringFrameWork的后续产品,已经融合在SpringWebFlow里面。Spring框架提供了构建Web应用程序的全功能MVC模块。使用Spring可插入的MVC架构,从而在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts1(现在一般不用),Struts2等。通过策略接口,Spring框架是
- Struts2-S2-061远程命令执行(CVE-2020-17530)漏洞复现
菜瓜苗
漏洞复现python
目录框架介绍漏洞原理影响版本环境搭建漏洞探测漏洞利用防御措施框架介绍ApacheStruts2最初被称为WebWork2,它是一个简洁的、可扩展的框架,可用于创建企业级Javaweb应用程序。Struts2是Struts1的一个升级版,但是它和Struts1来相比,提供了太多的增强和改进,怎么运行的呢,就是实现了Servlet的功能,来进行控制页面跳转。同时这也是基于MVC设计模式的Web应用框架
- 一个正在换工作的十年程序猿简历
三只小白
项目经理创业求职老程序猿
由于个人发展的原因,终选择依依不舍离开了工作了三年的公司。IT也是讲行业的,你过往的经历往往成为你新工作机会的铺设,记得自已是08年来的北京,想想那时真的很牛B,工作经验没有,技术上很一般,就会一个java,还记得那时会用struts1,就感满世界的找工作,还特自信的对自已说,我是一名程序猿,可以写出牛B的代码,将来会有一番作为。(一)回忆过往工作经历一)我北京的初夜2008年到2010年在一个家
- 一个正在换工作的十年程序猿
chiyalu8972
人工智能ffmpegc#
由于个人发展的原因,终依依不舍选择离开工作了三年的公司。IT也是讲行业的,你过往的经历往往成为你新工作机会的铺设,记得自已是08年来的北京,想想那时真的很牛B,工作经验没有,技术上很一般,就会一个java,还记得那时会用struts1,就感满世界的找工作,还特自信的对自已说,我是一名程序猿,可以写出牛B的代码,将来会有一番作为。(一)回忆过往工作经历一)北京的初夜2008年到2010年在一个家电子
- java项目源码分享网_分享二十套Java项目源码
下大垅
java项目源码分享网
分享二十套Java项目源码资源目录:1、BBS论坛系统(jsp+sql)2、ERP管理系统(jsp+servlet)3、OA办公自动化管理系统(Struts1.2+Hibernate3.0+Spring2+DWR)4、博客系统(struts+hibernate+spring)5、车辆管理系统(struts+hibernate+spring+oracle)6、家庭理财系统(java+applet)7
- Maven,Hibernate有关内容
黑夜_Eric
Maven,主要是一个jar包管理仓库和项目构建,了解了常用框架*前端:jqueryeasyuibootstrapamazeuijava后台:struts1struts2springmvc(流程控制框架);hibernatemybatisspringdata(持久层框架);spring(一站式框架)技术选型:spring+springmvc+hibernate;spring+springmvc+m
- 特点:struts2 ,spring,springmvc,springboot,springcloud
肥猫农农
SpringBoot
作者:易百Java技术QQ群:227270512/LinuxQQ群:479429477Struts2是流行和成熟的基于MVC设计模式的Web应用程序框架。Struts2不只是Struts1下一个版本,它是一个完全重写的Struts架构。WebWork框架开始以Struts框架为基础,其目标是提供一个加强和改进框架Struts来使web开发的开发人员更容易。一段时间后,WebWork框架和Strut
- 关于J2EE开发三层架构
笃志好学者
J2EE网站建设j2ee结构
现在开发web大多都是基于MVC的三层架构,三层架构优势什么呢?三层架构(3-tierapplication)通常意义上的三层架构就是将整个业务应用划分为:表现层(UI)、业务逻辑层(BLL)、数据访问层(DAL)。区分层次的目的即为了“高内聚,低耦合”的思想。1、表现层(UI):通俗讲就是展现给用户的界面,即用户在使用一个系统的时候他的所见所得。表现层的主流框架有:struts1,struts2
- 简简单单写一个SpringMVC框架
那只斑马不睡觉
java后端架构tomcatjar
一、介绍在日常的web开发中,熟悉java的同学一定知道,SpringMVC可以说是目前最流行的框架,之所以如此的流行,原因很简单:编程简洁、上手简单!我记得刚开始入行的时候,最先接触到的是Struts1+Hibernate+Spring来web系统的整体开发框架,简单的描述一下当时的编程心情:超难用,各种配置项很多,而且不容易快速入手!之后,新的项目换成了Struts2+hibernate+sp
- 手把手教你写一个SpringMVC框架
柚子茶1990
javaspring后端
一、介绍在日常的web开发中,熟悉java的同学一定知道,SpringMVC可以说是目前最流行的框架,之所以如此的流行,原因很简单:编程简洁、上手简单!我记得刚开始入行的时候,最先接触到的是Struts1+Hibernate+Spring来web系统的整体开发框架,简单的描述一下当时的编程心情:超难用,各种配置项很多,而且不容易快速入手!之后,新的项目换成了Struts2+hibernate+sp
- 黑豹程序员-架构师学习路线图-百科:MVC的演变终点SpringMVC
长安紫薯
黑豹程序员ssmframe三大框架学习mvc
文章目录MVC发展史第一代:微软的ASP+COM+实现两层架构第二代:SUN的Model1体系出炉第三代:SUN的Model2体系出炉,标准MVC体系建立第四代:Struts1对MVC进行改进第五代:Struts2对Struts1进行改进第六代:SpringMVC王者总结MVC发展史在我们开发小型项目时,我们代码是混杂在一起的,术语称为紧耦合。如最终写ASP、PHP。里面既包括服务器端代码,数据库
- java struts1_J2EE学习篇之--Struts1详解
weixin_39850787
javastruts1
今天来看一下Struts1的相关知识,其实Struts现在是出名的,每个Web开发者都会知道的,也是现在比较流行的框架,下面就来看一下我们为什么要用Struts框架呢?摘要1.建立在mvc这种好的模式上的,Struts在m,v,c上都有涉及,但主要的是提供一个好的控制器和一套定制的标签库上也就是说它在这里体现在c和v上,有mvc的一系列的优点,如:结构层次分明,高重用性,增加了程序的健壮性和可伸缩
- springMVC框架搭建
weixin_30817749
java测试web.xml
SpringMVC简介SpringMVC属于SpringFrameWork的后续产品,已经融合在SpringWebFlow里面。Spring框架提供了构建Web应用程序的全功能MVC模块。使用Spring可插入的MVC架构,从而在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts1,Struts2等。环境:Windows10M
- 开发框架-SpringMVC
Ayin的学习笔记
笔记tomcatjavaSpringMVC
SpringMVC什么是SpringMVC?SpringMVC属于SpringFrameWork的后续产品,已经融合在SpringWebFlow里面。Spring框架提供了构建Web应用程序的全功能MVC模块。使用Spring可插入的MVC架构,从而在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts1(现在一般不用),Str
- 学习SpringMVC——从HelloWorld开始
han_ying_ying
框架springMVC
什么是SpringMVCSpringMVC属于SpringFrameWork的后续产品,已经融合在SpringWebFlow里面。Spring框架提供了构建Web应用程序的全功能MVC模块。使用Spring可插入的MVC架构,从而在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts1,Struts2等。今天先从写一个Sprin
- sturts.xml配置文件的可视化 视图
凯凯_
1.提供struts.xml配置文件的可视化的视图*去struts2的开发包的lib目录下找到struts2-config-browser-plugin-2.3.15.3.jar,导入到咱们的工程中就可以了。*输入固定的地址(注意:工程名称需要改变):*http://localhost/day26_struts1/config-browser/index.action
- SpringMvc核心流程以及入门案例的搭建
窗台有只猫
springjavaspringbootpythonstruts2
1.什么是SpringMvcSpringMVC属于SpringFrameWork的后续产品,已经融合在SpringWebFlow里面。Spring框架提供了构建Web应用程序的全功能MVC模块。使用Spring可插入的MVC架构,从而在使用Spring进行WEB开发时,可以选择使用Spring的SpringMVC框架或集成其他MVC开发框架,如Struts1,Struts2等。2.SpringMv
- 基本数据类型和引用类型的初始值
3213213333332132
java基础
package com.array;
/**
* @Description 测试初始值
* @author FuJianyong
* 2015-1-22上午10:31:53
*/
public class ArrayTest {
ArrayTest at;
String str;
byte bt;
short s;
int i;
long
- 摘抄笔记--《编写高质量代码:改善Java程序的151个建议》
白糖_
高质量代码
记得3年前刚到公司,同桌同事见我无事可做就借我看《编写高质量代码:改善Java程序的151个建议》这本书,当时看了几页没上心就没研究了。到上个月在公司偶然看到,于是乎又找来看看,我的天,真是非常多的干货,对于我这种静不下心的人真是帮助莫大呀。
看完整本书,也记了不少笔记
- 【备忘】Django 常用命令及最佳实践
dongwei_6688
django
注意:本文基于 Django 1.8.2 版本
生成数据库迁移脚本(python 脚本)
python manage.py makemigrations polls
说明:polls 是你的应用名字,运行该命令时需要根据你的应用名字进行调整
查看该次迁移需要执行的 SQL 语句(只查看语句,并不应用到数据库上):
python manage.p
- 阶乘算法之一N! 末尾有多少个零
周凡杨
java算法阶乘面试效率
&n
- spring注入servlet
g21121
Spring注入
传统的配置方法是无法将bean或属性直接注入到servlet中的,配置代理servlet亦比较麻烦,这里其实有比较简单的方法,其实就是在servlet的init()方法中加入要注入的内容:
ServletContext application = getServletContext();
WebApplicationContext wac = WebApplicationContextUtil
- Jenkins 命令行操作说明文档
510888780
centos
假设Jenkins的URL为http://22.11.140.38:9080/jenkins/
基本的格式为
java
基本的格式为
java -jar jenkins-cli.jar [-s JENKINS_URL] command [options][args]
下面具体介绍各个命令的作用及基本使用方法
1. &nb
- UnicodeBlock检测中文用法
布衣凌宇
UnicodeBlock
/** * 判断输入的是汉字 */ public static boolean isChinese(char c) { Character.UnicodeBlock ub = Character.UnicodeBlock.of(c);
- java下实现调用oracle的存储过程和函数
aijuans
javaorale
1.创建表:STOCK_PRICES
2.插入测试数据:
3.建立一个返回游标:
PKG_PUB_UTILS
4.创建和存储过程:P_GET_PRICE
5.创建函数:
6.JAVA调用存储过程返回结果集
JDBCoracle10G_INVO
- Velocity Toolbox
antlove
模板toolboxvelocity
velocity.VelocityUtil
package velocity;
import org.apache.velocity.Template;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.c
- JAVA正则表达式匹配基础
百合不是茶
java正则表达式的匹配
正则表达式;提高程序的性能,简化代码,提高代码的可读性,简化对字符串的操作
正则表达式的用途;
字符串的匹配
字符串的分割
字符串的查找
字符串的替换
正则表达式的验证语法
[a] //[]表示这个字符只出现一次 ,[a] 表示a只出现一
- 是否使用EL表达式的配置
bijian1013
jspweb.xmlELEasyTemplate
今天在开发过程中发现一个细节问题,由于前端采用EasyTemplate模板方法实现数据展示,但老是不能正常显示出来。后来发现竟是EL将我的EasyTemplate的${...}解释执行了,导致我的模板不能正常展示后台数据。
网
- 精通Oracle10编程SQL(1-3)PLSQL基础
bijian1013
oracle数据库plsql
--只包含执行部分的PL/SQL块
--set serveroutput off
begin
dbms_output.put_line('Hello,everyone!');
end;
select * from emp;
--包含定义部分和执行部分的PL/SQL块
declare
v_ename varchar2(5);
begin
select
- 【Nginx三】Nginx作为反向代理服务器
bit1129
nginx
Nginx一个常用的功能是作为代理服务器。代理服务器通常完成如下的功能:
接受客户端请求
将请求转发给被代理的服务器
从被代理的服务器获得响应结果
把响应结果返回给客户端
实例
本文把Nginx配置成一个简单的代理服务器
对于静态的html和图片,直接从Nginx获取
对于动态的页面,例如JSP或者Servlet,Nginx则将请求转发给Res
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugin
blackproof
maven报错
转:http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin
maven报错:
Plugin execution not covered by lifecycle configuration:
- 发布docker程序到marathon
ronin47
docker 发布应用
1 发布docker程序到marathon 1.1 搭建私有docker registry 1.1.1 安装docker regisry
docker pull docker-registry
docker run -t -p 5000:5000 docker-registry
下载docker镜像并发布到私有registry
docker pull consol/tomcat-8.0
- java-57-用两个栈实现队列&&用两个队列实现一个栈
bylijinnan
java
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/*
* Q 57 用两个栈实现队列
*/
public class QueueImplementByTwoStacks {
private Stack<Integer> stack1;
pr
- Nginx配置性能优化
cfyme
nginx
转载地址:http://blog.csdn.net/xifeijian/article/details/20956605
大多数的Nginx安装指南告诉你如下基础知识——通过apt-get安装,修改这里或那里的几行配置,好了,你已经有了一个Web服务器了。而且,在大多数情况下,一个常规安装的nginx对你的网站来说已经能很好地工作了。然而,如果你真的想挤压出Nginx的性能,你必
- [JAVA图形图像]JAVA体系需要稳扎稳打,逐步推进图像图形处理技术
comsci
java
对图形图像进行精确处理,需要大量的数学工具,即使是从底层硬件模拟层开始设计,也离不开大量的数学工具包,因为我认为,JAVA语言体系在图形图像处理模块上面的研发工作,需要从开发一些基础的,类似实时数学函数构造器和解析器的软件包入手,而不是急于利用第三方代码工具来实现一个不严格的图形图像处理软件......
&nb
- MonkeyRunner的使用
dai_lm
androidMonkeyRunner
要使用MonkeyRunner,就要学习使用Python,哎
先抄一段官方doc里的代码
作用是启动一个程序(应该是启动程序默认的Activity),然后按MENU键,并截屏
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRun
- Hadoop-- 海量文件的分布式计算处理方案
datamachine
mapreducehadoop分布式计算
csdn的一个关于hadoop的分布式处理方案,存档。
原帖:http://blog.csdn.net/calvinxiu/article/details/1506112。
Hadoop 是Google MapReduce的一个Java实现。MapReduce是一种简化的分布式编程模式,让程序自动分布到一个由普通机器组成的超大集群上并发执行。就如同ja
- 以資料庫驗證登入
dcj3sjt126com
yii
以資料庫驗證登入
由於 Yii 內定的原始框架程式, 採用綁定在UserIdentity.php 的 demo 與 admin 帳號密碼: public function authenticate() { $users=array( &nbs
- github做webhooks:[2]php版本自动触发更新
dcj3sjt126com
githubgitwebhooks
上次已经说过了如何在github控制面板做查看url的返回信息了。这次就到了直接贴钩子代码的时候了。
工具/原料
git
github
方法/步骤
在github的setting里面的webhooks里把我们的url地址填进去。
钩子更新的代码如下: error_reportin
- Eos开发常用表达式
蕃薯耀
Eos开发Eos入门Eos开发常用表达式
Eos开发常用表达式
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 2014年8月18日 15:03:35 星期一
&
- SpringSecurity3.X--SpEL 表达式
hanqunfeng
SpringSecurity
使用 Spring 表达式语言配置访问控制,要实现这一功能的直接方式是在<http>配置元素上添加 use-expressions 属性:
<http auto-config="true" use-expressions="true">
这样就会在投票器中自动增加一个投票器:org.springframework
- Redis vs Memcache
IXHONG
redis
1. Redis中,并不是所有的数据都一直存储在内存中的,这是和Memcached相比一个最大的区别。
2. Redis不仅仅支持简单的k/v类型的数据,同时还提供list,set,hash等数据结构的存储。
3. Redis支持数据的备份,即master-slave模式的数据备份。
4. Redis支持数据的持久化,可以将内存中的数据保持在磁盘中,重启的时候可以再次加载进行使用。
Red
- Python - 装饰器使用过程中的误区解读
kvhur
JavaScriptjqueryhtml5css
大家都知道装饰器是一个很著名的设计模式,经常被用于AOP(面向切面编程)的场景,较为经典的有插入日志,性能测试,事务处理,Web权限校验, Cache等。
原文链接:http://www.gbtags.com/gb/share/5563.htm
Python语言本身提供了装饰器语法(@),典型的装饰器实现如下:
@function_wrapper
de
- 架构师之mybatis-----update 带case when 针对多种情况更新
nannan408
case when
1.前言.
如题.
2. 代码.
<update id="batchUpdate" parameterType="java.util.List">
<foreach collection="list" item="list" index=&
- Algorithm算法视频教程
栏目记者
Algorithm算法
课程:Algorithm算法视频教程
百度网盘下载地址: http://pan.baidu.com/s/1qWFjjQW 密码: 2mji
程序写的好不好,还得看算法屌不屌!Algorithm算法博大精深。
一、课程内容:
课时1、算法的基本概念 + Sequential search
课时2、Binary search
课时3、Hash table
课时4、Algor
- C语言算法之冒泡排序
qiufeihu
c算法
任意输入10个数字由小到大进行排序。
代码:
#include <stdio.h>
int main()
{
int i,j,t,a[11]; /*定义变量及数组为基本类型*/
for(i = 1;i < 11;i++){
scanf("%d",&a[i]); /*从键盘中输入10个数*/
}
for
- JSP异常处理
wyzuomumu
Webjsp
1.在可能发生异常的网页中通过指令将HTTP请求转发给另一个专门处理异常的网页中:
<%@ page errorPage="errors.jsp"%>
2.在处理异常的网页中做如下声明:
errors.jsp:
<%@ page isErrorPage="true"%>,这样设置完后就可以在网页中直接访问exc