Struts Web プロジェクトに使用j_security_checkしており、jboss にデプロイしています。
私のweb.xml私はロールを定義し、アプリケーションの名前であるjar名をtestuser含むjarファイルを作成しました。users.propertiesroles.propertiesTestUserInfo.jarTest
私のweb.xml:
<security-constraint>
<display-name>To secure Test site</display-name>
<web-resource-collection>
<web-resource-name>test_actions</web-resource-name>
<url-pattern>*.action</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>testuser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>test offshore realm</realm-name>
<form-login-config>
<form-login-page>/login_form.jsp</form-login-page>
<form-error-page>/login_error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>testuser</role-name>
</security-role>
users.propertiesファイルにはusername=password名前と値のペアroles.propertiesがありusername=role、(私の場合はuser=testuser)名前と値のペアがあります。
users.propertiesアプリケーションが JBoss にデプロイされている場合、ファイルにあるユーザー名とパスワードを使用してログインできます。TestUserInfo.jarの下に保持されjboss-5.1.0.GA\jboss-5.1.0.GA\server\default\libます。
同じことを実装するために websphere で何をしなければなりませんか?