This is a project on JSP. 1)I have this code where a button is pressed and the action is rendered to another page,which is a JSP page containing a pdf and the user is able to save it. I had tried my code a month back and it worked fine,now when I try it,it doesnt work on chrome,works on mozilla though. this is the line of code
response.setHeader("Content-Disposition", "inline; filename=Question.pdf");
2)My second problem is that,I have a reset button,this button resets the database.this function works fine on chrome but not on mozilla.I have no idea why it doesnt,there is no action taking place at all. this is the line of code for that
<button type="button" onclick="reset.jsp"><a href="reset.jsp">RESET</a></button>