Struts概述

本文深入探讨了Struts框架中的关键组件,包括ActionServlet、ActionClass、ActionForm、ActionMapping、ActionForward、ActionError及Struts标记库的作用,以及如何通过这些组件实现高效的数据处理和页面展示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Struts框架中的组件
  框架中所使用的组件:
  ActionServlet 控制器
  ActionClass 包含事务逻辑
  ActionForm 显示模块数据
  ActionMapping 帮助控制器将请求映射到操作
  ActionForward 用来指示操作转移的对象
  ActionError 用来存储和回收错误
  Struts标记库 可以减轻开发显示层次的工作

-------------------------------------------------------------

actionServlet
action
actionForm
actionMapping
actionForward

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>


build.xml
web.xml
struts-config.xml
struts-config-other.xml
tiles.xml
validator.xml

扩展点
plugin
actionServlet
action

 

Craig McClanahan
http://www.techcn.com.cn/index.php?doc-view-132020.html#3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值