Skip to Content
author's profile photo Former Member
Former Member

Ajax servlet gives wrong response for anonymous users

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 10:26 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.