2017年3月2日
摘要: ①用action属性接收 登录界面例子 在webroot下创建login.jsp和success.jsp login.jsp中加入表单: <form action="LoginAction.action" method="post"> 用户名:<input type="text" name="use 阅读全文
posted @ 2017-03-02 16:02 小学森也要学编程 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 在开发中通常需要用到多个配置文件,可以通过在web.xml中添加以下代码: <include file="login.xml"></include> 将src中的login.xml集成到web.xml中 xml的编码问题:若xml中出现编码问题,则加上以下代码: <constant name="st 阅读全文
posted @ 2017-03-02 14:26 小学森也要学编程 阅读(103) 评论(0) 推荐(0) 编辑
摘要: ①在struts.xml中的action添加method <action name="addhelloworld" method="add" class="com.lzhc.action.HelloWorldAction"> <result>/add.jsp</result> </action> 在 阅读全文
posted @ 2017-03-02 13:55 小学森也要学编程 阅读(197) 评论(0) 推荐(0) 编辑