浪曦struts2学习笔记1

配置ACTION后出现No result defined for action com.test.action.LoginAction and result success问题

上网找到以下办法,特此记录。

http://blog.csdn.net/dongzhout/article/details/43699699

设置STRUTS.XML和LOGIN.JSP中的ACTION即可

原因未知,很有可能是LOGIN与STRUTS2中的关键字冲突所致。



使用struts-tags时,提示

按照错误提示

 The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter.
解决这个错误很简单,将web.xml中的*.action改为/*即可
 

新写了一个JSP页面,什么都没改,就提示

The server encountered an internal error () that prevented it from fulfilling this request.

这是怎么回事呢?

看提示是

exception

org.apache.jasper.JasperException: /input.jsp(3,0) Page directive must not have multiple occurrences of pageencoding

严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP: 

那么就是import的包导错了,查看页面

发现第一行

<%@page import="javax.servlet.descriptor.TaglibDescriptor"%>

错误在此,删掉即可



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值