You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Iris <ir...@enix.org> on 2002/10/22 14:03:54 UTC
request.getRemoteUser() problem
Hello,
I have a JSP putlot.jsp defined like that in my struts-config:
<fom-beans>
<form-bean name="lotForm"
type="com.alkinos.soparias.webui.listing.LotForm"/>
</form-beans>
<action-mappings>
<action path="/putLot"
name="lotForm"
type="com.alkinos.soparias.webui.listing.action.PutLot"
input="/putlot.jsp"/>
</action-mappings>
I have a security-constraint on this JSP like that in my web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Put</web-resource-name>
<url-pattern>/putlot.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>administrateur de bien</role-name>
</auth-constraint>
</security-constraint>
So when I ask for this JSP I must authenticate me, and then in the JSP I
can ask for
request.getRemoteUser() ;
This works fine, but when I submit my form and go to the LotForm.java to
validate the
request.getRemoteUser() ; returns null
(and in the action.PutLot.java too)
I don't understand why.
Someone has an idea ?
Iris
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>