• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Report in JSP

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to generate a report and value for one column is many

for eg my report should look like
eno ename status
1 ahsdgas bbb
aaa
ccc
2 asdasd ddd
aaa


The way data stored in tables

emp
eno ename
1 ahsdgas

2 asdasd

emp_status
eno status_id
1 2
1 1
1 3
2 4
2 1

status
status_id descr

1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff

Is it possible to generate report like that in JSP
Give me some ideas...
 
Jeffrey Hunter
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is certainly possible. Ideally, you'd want your Servlet to retrieve the data from the database and feed it to the JSP, at which point the JSP will use custom tags to dynamically build the tables. You can set page breaks in the HTML to create a printer-friendly report that can be printed easily.

If all this sounds alien to you, just ask a more detailed question, and you'll most likely get an answer/suggestion which is more descriptive.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
r there any examples on net
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic