当前位置:
文档之家› Struts2框架核心配置文件的研究与应用
Struts2框架核心配置文件的研究与应用
第2 3卷
第 2期
计 算 机 技 术 与 发 展
C OMP UT ER T ECHNOL OGY AND DEVEL OPME NT
2 0 1 3年 2月
Vo 1 . 2 3 NO. 2 Fe b. 2 01 3
S t r u t s 2框 架核 心 配 置 文 件 的研 究 与应 用
ቤተ መጻሕፍቲ ባይዱ
2 . C h i n a U n i c o m J i n z h o u B r nc a h , J i n z h o u 1 2 1 0 0 0 , C in h a )
Ab s t r a c t : St r u t s 2 i s a p o we r f ul o p e n s o u r c e f r a me wo r k o f J a v a We b, t h e p r o c e s s i n g p r o c e d u r e o f S t r u t s 2 ra f me wo r k h a s b e e n in f i s h e d b y c o n i f g u r a i t on il f e s . Fo r he t c h a r a c t e is r i t c o f f r a me wo r k c o n ig f u r a io t n i f l e s mo r e c o n t e n t , c o n ig f ra u i t o n c o mp l e x i t y a n d h a r d t o ma s t e r , he t
建 步骤 及构 建方 法 ; 最 后研 究 s t u r t s . p r o p e r t i e s 配置 文件 , 着 重研究 s t r u t s . p r o p e t r i e s中包 含 主要 的 S t r u t s 2属性 及 配置 方 法。
文 中 的研究 内容 , 能够 使开 发者 清晰 地理 解配 置文 件 的写法 与调用 关 系 , 有 利于 团队成 员并 行工作 , 提 高开 发效率 。
难 以掌 握 的特点 , 对核 心 配 置 文 件进 行 研 究 。首先 , 列出了 S t mt  ̄ 框 架 的所 有 配 置 文 件 及 其 之 间 的相 互 关 系 , 指 出 了 s t r u t s . x m l 和s t r u t s . p r o p e r t i e s 是 核心 配置 文件 ; 接着 , 研究 s t ut r s . x m l 配 置 文件 , 包括 s t ut r s . x m l 常用 配 置 解析 、 s t r u t s . x m l 构
t wo c o r e c o n i f g u r a i t o n il f e s a r e r e s e a r c h e d . At i f r s t l i s t a l l he t c o n ig f u r a i t o n il f e s o f S t ut r s 2 nd a he t i r el r a t i o n s h i p . T h e n r e s e a r c h s t r u t s . x ml
刘 艳春 , 洪晓 慧
( 1 . 渤海大学 大学计算机教研部 , 辽 宁 锦州 1 2 1 0 1 3 ; 2 . 中国联 通 公 司锦 州分公 司 , 辽宁 锦 州 1 2 1 0 0 0 )
摘 要: S t r u t s 2是强 大 的 J a v a we b开 源框 架 , 处 理 过程 通过 配 置文 件完 成 。针对 S t r u t s 2框架 配 置文 件 内容多 、 配 置复杂 、
关 键词 : S t r u t s 2框架 ; 配 置文件 ; s t r u t s . x m l ; s t r u t s . p r o p e t r i e s 中图分 类号 : T P 3 1 1 文献 标识 码 : A 文章 编号 : 1 6 7 3 - 6 2 9 X( 2 0 1 3 ) 0 2 - 0 0 7 7 - 0 5
c o n i f g u r a i t on il f e, i n c l u d i n g s t r u t s . x ml c o mmo n c o n i f g u r a i t o n na a l y s i s , c o n s t r u c i t o n s ep t s a nd b u i l d i n g me ho t d o f he t s t r u t s . x m1 . Fi n a l l y- r e s e a r c h c o n ig f u r a t i o n i f l e s o f he t s t r u t s . p r o pe  ̄i e s。 f o c u s o n he t ma i n S t r u t s 2 a t t r i b u e t nd a c o n i f g u r a t i o n me ho t d c o n t a i n e d i n s t r u t s . p op r —
d o i : 1 0 . 3 9 6 9 / j . i s s n . 1 6 7 3 — 2 0 1 3 . 0 2 . 0 2 1
Re s e a r c h a n d Ap pl i c a t i o n o f Co r e Co n ig f u r a t i o n Fi l e s 0 f St r ut s 2 Fr a me wo r k
LI U Ya n- c h u n, HONG Xi a o-h u i
( 1 . T e a c h i n g a n d R e s e a r c h I n s i t t u t e o f C o l l e g e C o m p u t e r , B o h a i Un i v e r s i t y , J i n z h o u 1 2 1 0 1 3 , C h i n a ;