첫 번째 조치의 성공에 대해 다른 조치를 실행하려고하지만 요청 된 자원을 사용할 수 없다는 오류가 발생합니다. struts.xml 파일에서 아래 코드를 확인하십시오.조치 성공시 조치 실행
<action name="login" class="org.shobhan.action.LoginAction" >
<result name="success" type="dispatcher">/showProfile</result>
<result name="error" type="redirect">/Login.jsp</result>
</action>
<action name="showProfile" class="org.shobhan.action.ShowProfileAction" >
<result name="success">/profile.jsp</result>
</action>
Java 파일 LoginAction과 ShowProfileAction은 모두 같은 폴더에 있습니다.
like /showProfile.jsp –
내가 시도한 .action, 작동하지 않았습니다. – NotesArt