%@ 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+"/"; DB db = new DB(); db.open(); ResultSet rs = db.executeQuery("SELECT * FROM ads"); Object message = request.getAttribute("message"); %>