AEM Servlets
Hi all.
Kindly let me know 2-3 use cases for writing AEM Servlets.
Why could these needs be not fulfilled using normal Java code?
Appreciate all your responses.
Thanks,
Rama.
Hi all.
Kindly let me know 2-3 use cases for writing AEM Servlets.
Why could these needs be not fulfilled using normal Java code?
Appreciate all your responses.
Thanks,
Rama.
Few questions for you, when you review you might be able to answer your query
- If a Form is submitted from UI, what would you call on backend to process that Info? UI doesn't know Java Code and Java Programs cannot be accessed from UI
Hint: A servlet provides a URL which UI can hit and pass the information to.
In the end Servlet is Java Code, just it provides a URL what UI can submit information to
- You have a Dynamic component on page, like Search. You have 100 matching results, but UI only shows 5 at a time. When you want visit next 10 results, entire page should not be refreshed. How would this page 2 be rendered? From where will it get Info? How would backend know that page 2 info is needed now?
Hint: When you select Page 2, an HTTP call is made to a GET servlet. Informing the servlet that page-2 is requested. It gathers that info and gives it back to UI.
Again, Servlet is JAVA CODE, but via Servlet specific annotations, it provides a URL what that UI can interact with
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.