AnsweredAssumed Answered

[urgent] How to get content after searching?

Question asked by llin on Sep 21, 2007
Latest reply on Jan 20, 2009 by unknown-user

I am working on an application with searching inside Alfresco using Web Services. The most important thing is that people can click the link after searching to download/view a content without login.

Here are what I have in my application using Web Services until now, but have trouble with access content:

1. Start session
2. Searching Alfresco
3. results forwarded to a JSP page
4. End session

There are URLs on JSP for example <a href="">  linking to a content node inside Alfresco. If I didn't end session as above, I could open the content. Otherwise, I would get error "java.lang.IllegalStateException: Cannot create a session after the response has been committed".

How can I deal with that? Keep the session all the time? What is the best practice with Web Services authentication?

Thanks in advance. I really need to solve it.