配置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"%>
错误在此,删掉即可