%@ page language="java" import="com.app.utils.DB" pageEncoding="UTF-8"%> <%@ page language="java" import="java.sql.ResultSet" %> <%@ page language="java" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; Object message = request.getAttribute("message"); DB db = new DB(); db.open(); ResultSet rs = db.executeQuery("SELECT * FROM ads where id="+request.getParameter("id")); %>