Using AEM to generate HTML | Community
Skip to main content
Community_Admin
Adobe Employee
Adobe Employee
October 16, 2015
Solved

Using AEM to generate HTML

  • October 16, 2015
  • 2 replies
  • 1071 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Community_Admin

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).

2 replies

October 16, 2015

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" ...}

Community_Admin
Adobe Employee
Community_AdminAdobe EmployeeAuthorAccepted solution
Adobe Employee
October 16, 2015

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).