sorted it out from this link:[solved] Change the status sms,
Now my credit is reducing.
via:
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
request.setAttribute("display data", "Am from the servlet");
getServletConfig().getServletContext().getRequestDispatcher(
"/index.jsp").forward(request, response);
}
…index.jsp…