logo
Ответы к экзамену по ПИИ

Пример 2. Получения значения параметра инициации

// ---------- сервлет ------------------------------

protected void doGet(HttpServletRequest rq, HttpServletResponse rs)

throws ServletException, IOException {

String filename = rq.getParameter("file");

String doc dir= getServletContext().getInitParameter("doc-dir");

}