i'have jsp call view order.jsp when users click the view orders button in that jsp i want show all the details in the db in another jsp html table or i want display all the results in html table ... how can i do it
please help me .... its urgent
sheetanshu krishna wrote:Collect the requird data in rsultset & simply display that in jsp page using scriptlet
Bad advice. Very bad.
As a new-comer to JSP it's important to learn good practices and habits right away. The use of Java code and scriptlets in JSP pages has been discredited for over 8 years now. Do not put Java code or scriptlets in JSP pages. Rather, use modern techniques such as the JSTL and EL.
Bear Bibeault wrote:As a JSP newcomer, I suggest you read this article and this article.
Then you'll know that the data should be collected in the page controller for the JSP, and passed to the JSP as a scoped variable. There you will use JSTL and EL to construct the HTML table from the data.
thank a you a lot Bear Bibeault for your helping hand for us
So that's broken down your problem into several smaller problems. Work on them one at a time.