Hey guys, currently I am doing on insert products into the database.
The insert form, I am making use of hashtable in multi part form so that I can upload images as well as insery data into the database.
I can insert thr details as well as the images into database. But I cannot redirect to another page that have like :Successfully inserted:(
Whatever comes between <% %> is plain Java. After all the JSP is translated into a Servlet.
Best practice however is to totally abstain from using scriptlets, declarations and the like.
Your servlet is the place to do the processing, the JSP is for displaying what has been processed. So generate your HashMap in the servlet, set it as a request parameter, and access the values in the JSP. That's the way to go...
JDBCSupport - An easy to use, light-weight JDBC framework -
posted 10 years ago
I see i see.
Which mean we have to implement the hashtable inside the servlet?