Wednesday, March 6, 2013

Parsing all form fields from JSP

 Map parameters = request.getParameterMap();
for(String parameter : parameters.keySet()) {
    int i=0;
     String[] values = parameters.get(parameter);
      out.write(parameter);
     if (values.length>0){
         out.print(values[i]);
     }
     i++;

Tuesday, March 5, 2013

JQuery and Google chrome debugging

Ctr + Shift+ C will get you to the Chrome java script console.



Network will take you the actual page that was executed.

Source will take you to the src where you can set the debug break points.

Console is a good place where you can see the error or your custom log out puts. For example you can do the log content by console.log(data); where data is a string that is printed to the console.