Bear Bibeault wrote:All the work should be done in Java classes, not JSP. JSP should only be used to show the final results.
In other words, if you find yourself starting to put java code into a JSP, you are doing it wrong.
So get your Java classes written to perform all the database and other stuff, and then let us know what problems you are having showing results in the JSPs.
Bear Bibeault wrote:Ugh! Java code in a JSP? In 2010?
Ivan Bisevac wrote:I am beginner in jsp and don't know why you say this.
JSP is just a templating technology that helps you create the HTML pages. Any "data grid" will need to be rendered in HTML, JavaScript and CSS. There are 3rd party tag libraries that can help you do this (though I'm not personally impressed by any of them).Ivan Bisevac wrote:After i get data from database do i put it in html table or there is a data grid in JSP?
Based on what? A mouse click? If so, get the primary key from the clicked element and submit a request that goes through the whole process of fetching the data and displaying it.How to open one record in another page?
Bear Bibeault wrote:
JSP is just a templating technology that helps you create the HTML pages. Any "data grid" will need to be rendered in HTML, JavaScript and CSS. There are 3rd party tag libraries that can help you do this (though I'm not personally impressed by any of them).Ivan Bisevac wrote:After i get data from database do i put it in html table or there is a data grid in JSP?
Based on what? A mouse click? If so, get the primary key from the clicked element and submit a request that goes through the whole process of fetching the data and displaying it.How to open one record in another page?
The articles I referenced show this cycle.
Bear Bibeault wrote:I'd try google.
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|