cancel
Showing results for 
Search instead for 
Did you mean: 

how to get ep authority in jsp page

Former Member
0 Kudos

Hi all:

I want to create a j2ee project and some jsp pages to deploy to EP server.

My question is how to get user name or user authority in jsp page.

Is there any APIs to use or something else.

Thanks in advance.

Allen

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member273222
Participant
0 Kudos

I'm not sure if this is what you're looking for...

But the iUser interface is good for getting a username, and you should be able to handle authentication/authorization by protecting the path with a security stack.

Info about iUser is here:

http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUser.html

Hope this helps,

Glenn

Former Member
0 Kudos

Hai ,

I Think This will help ful for u check it ,

File=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10, new TraceFormatter());

The above code specifies the path for your log file.

Then add this file as a log location and then log the traces. For this you can use the following code like:

Location location=Location.getLocation(className);

location.addLog(file);

location.setEffectiveSeverity(Severity.ALL);

location.entering(methodName);

To Create j2ee apllication

In path new-j2ee-jsp to create JSP's can only be used for J2EE applications.

So as you are using this in Portal Application, this does not work.

You can test this bahavior by creating a new Web Application (New-Project-J2EE-Web Module Project)

In this Web Module Project, try creating JSP, this will work.

So dont use new-j2ee-jsp to create JSP in Portal Application instead use New-File and name the file as jsp.

Regards ,

venkat