Hi, I need to achieve the following. I am creating a
JSP page that should retrieve data from the database. The
JSP page should refresh every 2 minutes. The data should be displayed in the form of a table with the title of the columns on the
JSP page hyperlinked. When user clicks on a column title, the data should be sorted in an ascending or descending order.
I have written a servlet that fetches the data and forwards it to the
jsp page. Also, when the user clicks on the column title, the servlet is called with some parameters in the query string and it sorts the data and forwards it to the
JSP page. I am not using <FORM> tag in the
JSP page as I do not have to submit anything from the
JSP page to the servlet. Now the question on refreshing the
JSP page. I can use the <META
HTTP-EQUIV = "Refresh" ....> tag in the
JSP page, but how can I send parameters to the servlet through this tag? I understand that a GET request will be sent with this refresh tag. Is that correct?
Also, it would be great if you could suggest any better way to achieve what I am trying to do in the above mentioned application.