Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我尝试执行操作时,Url带有两个斜杠_Url_Tomcat_Netbeans_Struts2_Action - Fatal编程技术网

当我尝试执行操作时,Url带有两个斜杠

当我尝试执行操作时,Url带有两个斜杠,url,tomcat,netbeans,struts2,action,Url,Tomcat,Netbeans,Struts2,Action,我正在使用Netbeans 8.0.1学习Struts2和Tomcat 8.0.9.0,遇到一个问题,当我运行一个操作时,浏览器中的url有两个符号/,例如: (http://localhost:8084/RepresentantsApp//View/Login.action;jsessionid=F902CF301F9A5E8EF26F823603129F33?request_locale=ca) 因此,它向我显示了以下错误,因为我想我没有正确找到操作: HTTP状态404-没有为操作名称登

我正在使用Netbeans 8.0.1学习Struts2和Tomcat 8.0.9.0,遇到一个问题,当我运行一个操作时,浏览器中的url有两个符号/,例如:

(http://localhost:8084/RepresentantsApp//View/Login.action;jsessionid=F902CF301F9A5E8EF26F823603129F33?request_locale=ca)
因此,它向我显示了以下错误,因为我想我没有正确找到操作:

HTTP状态404-没有为操作名称登录映射的操作

jsp中的代码是:

<s:url id="ca" action="Login">
   <s:param name="request_locale">ca</s:param>
</s:url>

<s:a href="%{ca}">                        
   <s:text name='idiomaCatala.link'/>
</s:a>

ca

我希望得到指导。

当使用
s:url
标记构建url时,如果该值与锚
s:a
s:form
标记一起使用,则应排除上下文路径

<s:url id="ca" action="Login" includeContext="false">
   <s:param name="request_locale">ca</s:param>
</s:url>

<s:a href="%{#ca}">                        
   <s:text name="idiomaCatala.link"/>
</s:a>

ca

请显示所有相关配置。