Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Check http response of an external application from sightly code

Avatar

Avatar
Validate 25
Level 3
DEBAL_DAS
Level 3

Likes

13 likes

Total Posts

82 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
DEBAL_DAS
Level 3

Likes

13 likes

Total Posts

82 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
DEBAL_DAS
Level 3

06-12-2017

Hi All,

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.

                      

                                 or

2. Write a back end logic using WCMPojo with HttpURLConnection and validate the response.

                                   

                                or

3. Crate a servlet, get the response using HttpURLConnection and make a ajax call to that servlet  from sightly component.

Please suggest.

Thanks,

Debal

View Entire Topic

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,081 likes

Total Posts

3,121 posts

Correct Reply

1,061 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

06-12-2017

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.

Jörg