public void save(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
Enumeration<String> e=request.getParameterNames();
try{
while(e.hasMoreElements())
{
String fname=e.nextElement().toString();
String value=request.getParameter(fname);
}
}catch(Exception ex){
ex.printStackTrace();
}
response.sendRedirect("./deptnew.jsp");
}
throws ServletException, IOException
{
Enumeration<String> e=request.getParameterNames();
try{
while(e.hasMoreElements())
{
String fname=e.nextElement().toString();
String value=request.getParameter(fname);
}
}catch(Exception ex){
ex.printStackTrace();
}
response.sendRedirect("./deptnew.jsp");
}