How to covert java code in JSP -
how can convert following code jsp. tried "${}" , <%= on last line customer id no success.
out.println("<td>"); out.println("<form action=\"week05_portfolio_servlet\" method=\"post\">"); out.println("<input type=\"submit\" value=\"view\">"); out.println("<input type=\"hidden\" name=\"command\" value=\"viewvehicles\">"); out.println("<input type=\"hidden\" name=\"customerid\" value=\"" + cust.getid() + "\">");
wow- got long way go, huh? i'm not sure part having difficulty need remove "out.println" statements since jsp render out basic html. may need make sure declaring proper header jsp file. once like:
<input type="hidden" name="customerid" value="<%=cust.getid() %>" />
will work fine.
Comments
Post a Comment