<%@ include file="../import.include" %> <% int id = 0; String type = ""; boolean doShow = true; try { id = Integer.parseInt(request.getParameter("id")); } catch(Exception e) { doShow = false; } try { type = request.getParameter("type"); if (!( (type.equalsIgnoreCase("img_preview")) || (type.equalsIgnoreCase("img_big")) || (type.equalsIgnoreCase("img_small")) )){ doShow = false; } } catch(Exception e) { doShow = false; } if (doShow) { try { response.sendRedirect("http://192.168.1.9:8080/servlet/ShowImageServlet?id="+id+"&type="+type); } catch(Exception e){} } %>