struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iris <i...@enix.org>
Subject request.getRemoteUser() problem
Date Tue, 22 Oct 2002 12:03:54 GMT
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:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message