Such a question, I transfer the variable to the database view mode selection page in the following way: <li><a href="modeTmpSelect.jsp?pages=${pages}">Технологічні маршрути споживання об'єктів</a></li> , with When you go to the page in the address bar, you can see that the variable was transferred to http: // localhost: 8080 / ViewDb / modeTmpSelect.jsp? pages = 15 , but when I click on one of the buttons, where I also point to this parameter, the variable is already lost, why is going on?

 <a href="SearchTmpCh?page=1&count=0&osdch=${osdch}&osdk=${osdk}&cp=${cp}&svi=<%=svi%>&pages=${pages}" style="padding-right: 10px;"> <button id="leftBtn" class="left">Режим - Застосовність об'єкту</button></a> 

I do this in the servlet

  Integer pages; try { pages = Integer.parseInt(request.getParameter("pages")); } catch (NumberFormatException e) { pages = 25; } request.setAttribute("pages", pages); 

    0