Send data from a jsp to arduino

Greetings !
i have an iot project and i am using arduino uno and sim900a gsm module . Now, i want to send data from my jsp page let it be abc.com/a.jsp , all i want to do is to send data from my page to the arduino through gsmsim900a to simply turn a led on or off. I want to turn the led on and off through my website . i am stuck and getting nothing that how should i code for the above in jsp page as well on in arduino ide.

Thanks

You should use MQTT for subscribing the Arduino to the topic and generate a publish from the jsp page using HTTP requests if supported by broker you are using.

Also you can keep polling for a REST API endpoint using GSM module and update data coming at the API using JSP page.

Look at my latest video on linking a REST API interface and MQTT broker in playlist below,