私はウェブ開発にstruts2を使用しています。展開後、正しい私のサイトのログインページであるURLが表示http://localhost:8084/iland/
されますが、ログイン後、ユーザーの詳細を取得する「about」アクションにリダイレクトされるため、この場合はurlが必要ですがhttp://localhost:8084/iland/about
、表示されていますurl http://localhost:8084/iland/pages/about
。ここに「ページ」が含まれています。この変更により、CSS が読み込まれません。これを解決する方法
上記の私のstruts.xmlは
<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