Generally in Servlet we use HTML in Java (Java --->HTML), but in above we have to write Java ----> HTML -----> Java. So, we can write this in following manner
A simple Sevlet code can be like -
out.println("<table border='1' cellspacing='3' cellpadding='2'>");
If we want double quote instead of single quote in HTML properties value then code will be -
out.println("<input type=\"hidden\" name=\"place\" value=\"any value\">");
And finally when we want any variable value in value property of input type, then code will be -
out.println("<input type=\"hidden\" name=\"place\" value=\""+ variable +"\">");
A simple Sevlet code can be like -
out.println("<table border='1' cellspacing='3' cellpadding='2'>");
If we want double quote instead of single quote in HTML properties value then code will be -
out.println("<input type=\"hidden\" name=\"place\" value=\"any value\">");
And finally when we want any variable value in value property of input type, then code will be -
out.println("<input type=\"hidden\" name=\"place\" value=\""+ variable +"\">");