You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sutiwan Kariya <Su...@tisco.co.th> on 2003/03/18 10:59:53 UTC
Really need your helps - > Struts 1.1 and Websphere
Hi there,
I am using Struts 1.1 and WAS 4.04 and everything seems to work well.
But after I enabled the Websphere Security and added the following tag to
web.xml
<security-constraint id="SecurityConstraint_1">
<web-resource-collection id="WebResourceCollection_1">
<web-resource-name>JSP</web-resource-name>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1">
<description>TD Resources:+:</description>
<role-name>TDUser</role-name>
<role-name>Trader</role-name>
</auth-constraint>
<user-data-constraint id="UserDataConstraint_1">
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config id="LoginConfig_1">
<auth-method>BASIC</auth-method>
</login-config>
Stuts Action servlet doesn't work well anymore.
The action forward was called twice.
This is my struts-config.xml
<action path = "/searchInstitution"
type
= "com.tiscogroup.td.web.action.institution.InstitutionSearchAction"
scope = "session"
name = "InstitutionSearchForm"
input = "generalInfo/institution/institution_search.jsp"
>
<forward name = "searchSuccess" path
= "generalInfo/institution/institution_search.jsp" />
</action>
<action path = "/deleteInstitution"
type
= "com.tiscogroup.td.web.action.institution.InstitutionDeleteAction"
scope = "session"
name = "InstitutionInfoForm"
input = "generalInfo/institution/institution_search.jsp" >
<forward name = "deleteSuccess" path
= "/searchInstitution.do?mode=init" />
</action>
after I perform the "/deleteInstitution.do" and forward to "deleteSuccess",
the next Action is "/searchInstitution.do"and should forward to
"searchSuccess"
and finish
But It doesn't >>
After I perform the "/deleteInstitution.do" and forward to "deleteSuccess"
the next Action is "/searchInstitution" and then perform the
"/deleteInstitution" AGAIN
I tried to move the Security setting tag out from web.xml, then everything
worked well.
Does anyone get this problem? PLS HELP....
Sutiwan Wannapongsai
Application Development
Thai Information Technology Co.,Ltd.
Tel: 0-2633-7657
E-mail : sutiwan@tisco.co.th
********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the sole use of the individual or entity
to whom they are addressed. If you have received this
E-mail in error please notify the system manager. This E-mail
message has been swept for the presence of computer
viruses.
********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org