Daniel Gellman wrote:The servlet reads the single property sent, processes a bunch of data and then I'm using a rd.forward() call to post back to the index.jsp page with the processed data.
.load() does the same thing as your $.ajax code, but in a more succinct syntax.I tried the .load() method but that actually had the same result.
Ajax responses never return whole HTML pages -- they either return data (JSON or XML), or HTML fragments. If you want to refresh the entire page, you shouldn't be using Ajax at all
Daniel Gellman wrote:
Ajax responses never return whole HTML pages -- they either return data (JSON or XML), or HTML fragments. If you want to refresh the entire page, you shouldn't be using Ajax at all
If not using Ajax then what?
As for returning data, if I were to change the ArrayList into a JSONArray object and pass that back using the code in my original post and create the table in the Success portion of my ajax function would that work?
Daniel Gellman wrote:Basically I want to add a table into a div on the page
Do you have any starting points for this?
Since I was apparently going about it the wrong way lol.
edt: the page being the index.jsp page that is loaded originally. I dont want to have to truly redirect to a new page.