All pastes #339634 Raw Edit

Something

public text v1 · immutable
·published 2007-02-04 06:16 UTC
rendered paste body
package savedata;

import savedata.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.*;


public class MandatoryServlet extends HttpServlet {

   public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
   
	response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading All Request Parameters";
		HttpSession session = request.getSession();
    Enumeration paramNames = request.getParameterNames();
          while(paramNames.hasMoreElements()) {
            String paramName = (String)paramNames.nextElement();
		String val1= (String)session.getAttribute("userName");
                 String val2= (String)session.getAttribute("userName");
		String val3= (String)session.getAttribute("userName");				
                       String[] array ={val1,val2,val3}; 
				 
				 MandatoryServletModel fm = new MandatoryServletModel();
				 List result = fm.getFields(array);
				 
				 //insert(array);
				 break;
  		  }  // end while
	}// do get method


}