I have written this code in JSP but I wanted the html codes to be in emberJS for that I wanted to send the ResultSet to emberJS and iterate the questions in emberJS. I am newbie to emberJS. Can anyone help me to get through this? Thanks in advance
Hi, Edward. Yes, I am serving it on apache tomcat sever at http://localhost:8080/onlinefeedbacksystemFinal/deletequestion.jsp
As in the above JSP code I have iterated the resultset in java which is the query of the all the questions and question ids using JDBC. I guess I cannot return the java resultset to the ember. Is there any other way ? (Now my question is how to send the resultset which contains the questions and question ids to route)
I think what you’re missing is that you don’t want JSP to render HTML. You want it to render something that’s easier for your code to parse and consume – probably JSON. My sample code above assumes JSON. Where I wrote /your-questions-endpoint-here, that would be your http://localhost:8080/onlinefeedbacksystemFinal/deletequestion.jsp