cancel
Showing results for 
Search instead for 
Did you mean: 

Ajax servlet gives wrong response for anonymous users

Former Member
0 Kudos

Hi everyone,

I am developing a simple ajax component that checks a table in a database and then shows an icon if the read records have a particular state. I followed the steps shown in the sdn guide "using ajax techniques in EP", so i developed an ajax servlet called by the ajax component and it works properly when i access to the portal as logged user.

If I try to enter the portal as anonymous user the component doesn't work because if I try to read the response of the servlet through the xmlhttprequest object it gives me a wrong response, not the one from the ajax servlet.

Does anyone have experimented the same ajax issue for anonymous users or is there any limitation on using ajax for not autenthicated users?

Thank you, regards

Mattia

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you, I've solved the issue, it was about the authscheme in the portalapp.xml.

I've specified

<component-profile>

<property name="AuthScheme" value="anonymous"/>

</component-profile>

and now it works properly.