cancel
Showing results for 
Search instead for 
Did you mean: 

Run as in servlet or ejb

Former Member
0 Kudos

Hi,

I want to develop a servlet that does some kind of login verification and then sets the current user if the verification routine passed correctly.

To do this , in the servlet I want to do something like

if (authorizedByRoutine)

setCurrentUser("ccddee");

else

throw Exception("Not authorized");

This could also be done in a filter.

I know you can set the run-as user (role) in the web.xml but can you do it programmaticaly ?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

ekaterinamitova
Advisor
Advisor
0 Kudos

Hi,

In this document:

http://help.sap.com/saphelp_nwce711/helpdata/en/46/3079bf50094f09e10000000a114a6b/frameset.htm

it is described how to specify run-as programmatically.

Best regards,

Ekaterina

Former Member
0 Kudos

Thanks.

Does anyone know if there is an equivalent for servlets ?

Thanks

ekaterinamitova
Advisor
Advisor
0 Kudos

Hi,

This is the related document for servlets:

http://help.sap.com/saphelp_nwce711/helpdata/en/46/7b7b98690c429ee10000000a1553f7/frameset.htm

Best regards,

Ekaterina

Former Member
0 Kudos

Excellent... thank you so much.

Answers (0)