Struts框架的分析及其改进  被引量:5

THE ANALYSIS OF STRUTS FRAMEWORK AND ITS IMPROVEMENT

在线阅读下载全文

作  者:陈才贤[1] 李莉[1] 

机构地区:[1]山东经济学院计算机科学与技术学院,山东济南250014

出  处:《计算机应用与软件》2010年第1期26-28,共3页Computer Applications and Software

基  金:国家自然科学基金(60603077)

摘  要:为了将Web应用中的业务逻辑和表现形式分离,尤其是降低在JSP文件中的Java代码,人们想了很多方法,其中应用Struts框架是较流行的方法。分析了Struts框架的缺陷,提出了Struts框架的改进方案,它大量采用XML、Xpath、XSL等技术和Struts框架,而不再使用JSP,同时将Struts中的FormBean、Session等需要显示的内容映射成XML内容,在XSL(表现层)中通过XSLT、Xpath技术访问,从而保证了XSL(表现层)中不再需要任何Java代码,真正实现了MVC的承诺。改进的Struts框架在智能大厦办公自动化系统中的成功实施说明了此方案是可行的。In order to divide business logic and manifestation in web applications,especially to decrease the java code in JSP,people tried many methods,in which Struts framework is a popular scheme at present.In the paper,some limitations in Struts framework are analyzed.At the same time,an improved Struts framework is put forward.In the improved scheme,XML,XSLT and XPath technologies are utilized instead of standard JavaServer Pages,and the contents in Struts requiring viewed such as FormBean and Session are mapped into XML contents,then is visited through XSLT,Xpath technologies in XSL(presentation layer),so it ensures there is no Java code in XSL(presentation layer).In this way the promise of MVC is carried out truly.The successful application of the improved Struts framework in OA System of the Intelligent Building demonstrates the scheme is feasible.

关 键 词:STRUTS XML XSLT 框架 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论] TP311[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象