本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- gengyun12
- hbxflihua
- e_e
- luxurioust
- dbagirl
- zysnba
- robotmen
- Alsmile
- gaozzsoft
- jywhltj
- cpongo1
- leslie26
- qepwqnp
- 解宜然
- cuityang
- gashero
- sichunli_030
- fantaxy025025
- vipbooks
- wallimn
- gdpglc
- ssydxa219
- javashop
- ranbuijj
- jickcai
- hanbaohong
- johnsmith9th
- appalese
- gaojingsong
- weiyides
- 淡看人生
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- liunancun
- xpenxpen
- zhangdaiscott
- 龙哥IT
- conkeyn
- nychen2000
- ouanui
- lemonhandsome
- silverend
- jveqi
最新文章列表
默认Action-深入Struts2
一 介绍
当输入了错误的网址时,会调到默认的ation去处理
二 配置方法
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configurati ...
struts 设置默认 action
struts 如何设置默认action呢?
我要达到的目的是:访问不存在的action时自动跳转到默认的action
在struts.xml中添加:
<!-- 404页面 -->
<default-action-ref name="notFound" />
<action name="notFound" cl ...
struts2默认action
struts2的默认action,当其它action都不能匹配时,将用默认的action进行处理。
默认action配置在默认命名空间里。
下面是struts.xml中的配置:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache S ...