웹 개발을 위해 struts2를 사용하고 있습니다. 를 배포 한 후 http://localhost:8084/iland/about
, 해야한다이 경우 URL에 있도록 사용자 정보를 가져 올바른 있지만 로그인 후 행동 '에 대한'로 재 내 사이트 의 로그인 페이지입니다 URL http://localhost:8084/iland/
을 보여주고 있지만 URL을 보여주고있다 http://localhost:8084/iland/pages/about
. 여기 '페이지'가 포함되어 있습니다.이 변경으로 인해 내 CSS가로드되지 않습니다. 위경로에 추가 단어가 포함 된 URL
<package name="myprofile" extends="struts-default">
<action name="login" class="action.LoginAction">
<result name="success" type="redirect">about</result>
<result name="input">/pages/login.jsp</result>
</action>
<package name="default" extends="struts-default">
<action name="about" class="social.action.fetchBasicProfile">
<result name="success">/pages/profile/about.jsp</result>
<result name="input">/pages/profile/about.jsp</result>
<result name="login">/pages/pleaselogin.jsp</result>
</action>
</package
두 개의 중복 결과가 있습니다. –
먼저 "redirectAction"을 사용해야합니다. 먼저 무엇을하는지보십시오. –
'about '액션이 정의 된 패키지의 네임 스페이스는 무엇입니까? –