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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -