Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I wish to get data from my jsp to servlet without page refresh , I am getting a dropdown value and apply the selected value to my servlet, I look up at ajax tutorial from servlet to jsp , but is there any from jsp to servlet without page refresh.
Posted
Comments
Xiao Ling 19-Nov-14 3:11am    
WebSocket is an alternative. You can use Jetty on your server side to communicate with Web pages via WebSocket.

1 solution

Write your ajax code in servlet page like out.println("function ajax()");.and set jsp page as your action page..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900