简体   繁体   English

HTTP 状态 500 - 无法为 JSP 编译类,重定向到操作

[英]HTTP Status 500 - Unable to compile class for JSP, redirect to an action

I just tried to redirect my jsp to my action named 'visual', mapped in struts.xml but every time i start the project and go into the jsp, tomcat show me this error and i don't know why.我只是尝试将我的 jsp 重定向到名为“visual”的操作,映射在 struts.xml 中,但是每次我启动项目并进入 jsp 时,tomcat 都会向我显示此错误,我不知道为什么。

How i can redirect the user when goes on home.jsp?我如何在 home.jsp 上重定向用户?

This is my error :这是我的错误: home.jsp 的错误

Home.jsp主页.jsp

%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%= response.sendRedirect("visual") %>

Struts.xml Struts.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
        "http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>
        <constant name="struts.ui.theme" value="simple" />
        <constant name="struts.enable.SlashesInActionNames" value="true"/>

        <package name="rubrica" namespace="/" extends="struts-default">



                <action name="visual" class="com.my.action.ActionGeneric" method="defaultmethod">
                        <result name="success" type="redirect">read.action</result>
                        <result name="error">/indexError.jsp</result>
                        <result name="input">/indexInput.jsp</result>
                </action>

                <action name="read" class="com.my.action.ActionGeneric" method="read">
                        <result name="success">/index.jsp</result>
                </action>

                <action name="visualInsert" class="com.my.action.ActionGeneric" method="defaultmethod">
                        <result name="success">/insert.jsp</result>
                </action>

                <action name="insert" class="it.zerob.action.ActionGeneric" method="insert">
                        <result name="success">/insert.jsp</result>
                </action>

                <action name="visualUpdate" class="com.my.action.ActionGeneric" method="defaultmethod">
                        <result name="success">/insert.jsp</result>
                </action>

                <action name="update" class="com.my.action.ActionGeneric" method="update">
                        <result name="success">/insert.jsp</result>
                </action>

                <action name="delete" class="com.my.action.ActionGeneric" method="insert">
                        <result name="success">/index.jsp</result>
                        <result name="error">indexError.jsp</result>
                        <result name="input">indexInput.jsp</result>
                </action>

        </package>
</struts>

Children of Mana is a 2006 action role-playing game for the Nintendo DS handheld console.法力之子是 2006 年的 Nintendo DS 掌上游戏机动作角色扮演游戏。 It was developed by Square Enix and Nex Entertainment, and published by Square Enix and Nintendo.它由史克威尔艾尼克斯和 Nex Entertainment 开发,由史克威尔艾尼克斯和任天堂发行。 It is the sixth game of the Mana series and the first entry in the World of Mana subseries.这是 Mana 系列的第六款游戏,也是 World of Mana 子系列的第一款游戏。 Set in a high fantasy universe, Children of Mana follows one of four young heroes as they combat an invasion of monsters and learn about the cataclysmic event that killed their families.在一个高度奇幻的宇宙中,玛娜之子跟随四位年轻英雄中的一位对抗怪物的入侵,并了解杀死他们家人的灾难性事件。 Both the main plot and side-quests require主线和支线任务都需要

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    response.sendRedirect("visual");
%>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM