You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kelly Goedert <ke...@nexxera.com> on 2003/12/30 12:22:05 UTC

RequestProcessor problem

Can anyone give me an example on how to use the RequestProcessor?

I want to use the RequestProcessor to check on action roles. Do I have 
to subclass it? Or I can use it as it is?
To use roles to I have to configure anything in the container too? Or 
just setting the roles parameter and using the RequestProcessor, will  
allow mw to check the  roles that the user might have to access that action?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: RequestProcessor problem

Posted by Pedro Salgado <sa...@04web.com>.

  Dependencies:

  struts
  servlet
  log4j
  plugincompanion
  log4j

  junit...

  I use a UserContainer to set login, roles and user variables.

  The RoleRequestProcessor tests the user roles against your struts defined
roles... simple.

  I use it in order to have a simple role restriction on my actions... and
in order to have a servlet container independent solution.

  Hope it helps,

Pedro Salgado 

On 30/12/2003 17:01, "Kelly Goedert" <ke...@nexxera.com> wrote:

> If you can send it'll appreciate it.
> 
> Pedro Salgado wrote:
> 
>> On 30/12/2003 11:22, "Kelly Goedert" <ke...@nexxera.com> wrote:
>> 
>>  
>> 
>>> Can anyone give me an example on how to use the RequestProcessor?
>>> 
>>> I want to use the RequestProcessor to check on action roles. Do I have
>>> to subclass it? Or I can use it as it is?
>>> To use roles to I have to configure anything in the container too? Or
>>> just setting the roles parameter and using the RequestProcessor, will
>>> allow mw to check the  roles that the user might have to access that action?
>>>    
>>> 
>> 
>>  I made a framework for this purpose. If you want it I can send you the
>> source so you can reuse in any way you like.
>> 
>> Pedro Salgado
>> 
>>  
>> 
>>> Thanks
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>    
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>> 
>>  
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org



Re: RequestProcessor problem

Posted by Kelly Goedert <ke...@nexxera.com>.
If you can send it'll appreciate it.

Pedro Salgado wrote:

>On 30/12/2003 11:22, "Kelly Goedert" <ke...@nexxera.com> wrote:
>
>  
>
>>Can anyone give me an example on how to use the RequestProcessor?
>>
>>I want to use the RequestProcessor to check on action roles. Do I have
>>to subclass it? Or I can use it as it is?
>>To use roles to I have to configure anything in the container too? Or
>>just setting the roles parameter and using the RequestProcessor, will
>>allow mw to check the  roles that the user might have to access that action?
>>    
>>
>
>  I made a framework for this purpose. If you want it I can send you the
>source so you can reuse in any way you like.
>
>Pedro Salgado
>
>  
>
>>Thanks
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: RequestProcessor problem

Posted by Pedro Salgado <sa...@04web.com>.
On 30/12/2003 11:22, "Kelly Goedert" <ke...@nexxera.com> wrote:

> Can anyone give me an example on how to use the RequestProcessor?
> 
> I want to use the RequestProcessor to check on action roles. Do I have
> to subclass it? Or I can use it as it is?
> To use roles to I have to configure anything in the container too? Or
> just setting the roles parameter and using the RequestProcessor, will
> allow mw to check the  roles that the user might have to access that action?

  I made a framework for this purpose. If you want it I can send you the
source so you can reuse in any way you like.

Pedro Salgado

> 
> Thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org