How to redirect to a html page from a java servlet along with the variables from the servlet? -
i want open html page java servlet , variables of servlet should used assign form fields in html page opened. this servlet import java.io.*; import java.sql.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; public class signin extends httpservlet { public void dopost(httpservletrequest req,httpservletresponse res)throws ioexception,servletexception { printwriter pw=res.getwriter(); string fname=null,lname=null,uname,pwd,dept=null,mobno=null; connection con=null; statement stat=null; resultset rs=null; try { class.forname("sun.jdbc.odbc.jdbcodbcdriver"); con=drivermanager.getconnection("jdbc:odbc:userdb"); stat=con.createstatement(); uname=req.getparameter("un"); pwd=req.getparameter("password"); //pw.println(pwd); rs=stat.executequery("select * userdb uname= '"+uname+"' , pwd='"+pwd+"