Expand my Community achievements bar.

SOLVED

Using AEM to generate HTML

Avatar

Employee

Hi,

 

Our current implementation invloves passing a serialised object via a GET request to a Sling servlet, it is deserialsed, the object is added as a request attribute and forwarded  to a relavent JSP page depending on a property in the object.

This implementation will not work for large amounts of data due to the limitations of HTTP GET. HTTP POST requests do not work in Adobe CQ as it thinks that we are modifing the resource.

 

We need another way to pass in our object to the Servlet and return HTML. How is this possible/feesable in Adobe CQ?

 

Thanks,

 

Ryan

1 Accepted Solution

Avatar

Correct answer by
Employee

Making HTTP POSTs is fine in CQ. You just need to ensure that the request is being sent to the correct servlet (which it doesn't sound like it is).

View solution in original post

2 Replies

Avatar

Level 1

POST request is fine

When you wish to give post request

Then in your sling servlet give method="POST" i.e. @SlingServlet{path=".." method="POST" ...}

Avatar

Correct answer by
Employee

Making HTTP POSTs is fine in CQ. You just need to ensure that the request is being sent to the correct servlet (which it doesn't sound like it is).