Sign in to Community
Sign in to view all badges
I am planing to check the Http response of an external application from my sightly component.
From development perspective which one is better -
1. Make ajax call to check the application response code from sightly component itself.
2. Write a back end logic using WCMPojo with HttpURLConnection and validate the response.
3. Crate a servlet, get the response using HttpURLConnection and make a ajax call to that servlet from sightly component.
Please ask your architect, if you are supposed to do a clientside integration of that piece of frontend content or if you are supposed to deliver a single HTML page, which contains all data already.
The decision to use AJAX or not is something I would never leave to any single developer. It must to decision shared with the whole team, and the consequences should be very clear to all.