摘要:
①用action属性接收 登录界面例子 在webroot下创建login.jsp和success.jsp login.jsp中加入表单: <form action="LoginAction.action" method="post"> 用户名:<input type="text" name="use 阅读全文
摘要:
在开发中通常需要用到多个配置文件,可以通过在web.xml中添加以下代码: <include file="login.xml"></include> 将src中的login.xml集成到web.xml中 xml的编码问题:若xml中出现编码问题,则加上以下代码: <constant name="st 阅读全文
摘要:
①在struts.xml中的action添加method <action name="addhelloworld" method="add" class="com.lzhc.action.HelloWorldAction"> <result>/add.jsp</result> </action> 在 阅读全文