急求大妈知道,代码部分都弄好了,就是登录不上,是不是struts.xml配置错了

急求大婶知道,代码部分都弄好了,就是登录不上,是不是struts.xml配置错了?
工程中的结构如下两图:急求大妈知道,代码部分都弄好了,就是登录不上,是不是struts.xml配置错了急求大妈知道,代码部分都弄好了,就是登录不上,是不是struts.xml配置错了


struts.xml代码如下:
<struts>
<!-- 登录模块配置 -->
<package name="ccc-default" extends="json-default" namespace="/">
<!-- 注册拦截器 -->
<interceptors>
<interceptor name="checklogin" 
class="com.aaa.ccc.interceptor.CheckLoginInterceptor">                    </interceptor>
<interceptor-stack name="checklogin">
<interceptor-ref name="checklogin"/>
<interceptor-ref name="defaultStack"/>
</interceptor-stack>
<!-- 定义拦截器栈,将checklogin和defaultStack合并 -->
<interceptor-stack name="loginStack">
<interceptor-ref name="checklogin"/>
<interceptor-ref name="defaultStack"/>
</interceptor-stack>
</interceptors>
<!-- 为当前package中所有Action指定默认的拦截器-->
<default-interceptor-ref name="loginStack"/>
 <default-action-ref name="defaultAction"/>
<!-- 全局result定义 -->
<global-results>
<result name="error">/WEB-INF/jsp/error.jsp</result>
<result name="login" type="redirectAction">
<param name="namespace">/</param>
<param name="actionName">login</param>
</result>
</global-results>
<global-exception-mappings>
<exception-mapping result="error" exception="java.lang.Exception"></exception-mapping>
</global-exception-mappings>

<!-- 采用重定向方式调用login -->
<action name="defaultAction">
<result type="redirectAction">
<param name="namespace">/</param>
<param name="actionName">login</param>
</result>
</action>
<!-- 进入登录页面 -->
<action name="login">
<result>/WEB-INF/jsp/login.jsp</result>
</action>
<!-- 验证成功或失败 -->
<action name="loginform"
class="com.aaa.ccc.action.LoginAction">
                        <!--验证成功转发到main.action-->
<result name="success" type="redirectAction">main</result>
                        <!--验证失败-->
<result name="fail">/WEB-INF/jsp/login.jsp</result>
</action>
<!-- 验证成功后进入的主页面 -->
<action name="main">
<result>/WEB-INF/jsp/main.jsp</result>
</action>
</package>
</struts>


在浏览器地址栏中怎么输入(具体格式)?????
struts struts配置 interceptor namespace xml

------解决方案--------------------
急求大妈知道,代码部分都弄好了,就是登录不上,是不是struts.xml配置错了
http://localhost:端口/项目名/login.action 

不过也看你的服务器是否用不用打项目名
http://localhost:端口/login.action 

这个是你的程序吗
------解决方案--------------------
报的什么错?贴错上来看看。
还有,struts.xml放到src下面试试,现在看你好象放到src下的某个包下面了
------解决方案--------------------
先打断点看登陆的时候是否走了那个LoginAction的登陆方法了,没走就是你的路径写错了,是你的访问路径写错
http://localhost:端口/项目名/login.action
------解决方案--------------------
引用:
报的什么错?贴错上来看看。
还有,struts.xml放到src下面试试,现在看你好象放到src下的某个包下面了

struts.xml必须放在src目录下面,同意楼上