request.setAttribute("p", new PrintText());
request.setAttribute("s", new ShowText());
request.getRequestDispatcher("index.jsp").forward(request, response)
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
ShowText s = new ShowText();
s.getString();
request.setAttribute("s", s);
request.getRequestDispatcher("index.jsp").forward(request, response);
PrintText p = new PrintText();
p.getText();
request.setAttribute("p", p);
request.getRequestDispatcher("index.jsp").forward(request, response);
}
}