I am grabbing some data from a page using the code below:
int clientId = Integer.parseInt(request.getParameter("clientId"));
I have tried surrounding it with try/catch and then redirecting in the catch block using response.sendRedirect("page.jsp");
but the page does not re-direct, it seems to want to finish the whole script (which in turn throws more errors because the initial variables aren't valid!). Am I missing something basic here?