Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP

 
narendra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a table which is to be editable in JSP or thru java.I tried the HTML tag table which can create noneditable table.I also tried in jtable which is working in applet viewer but not in any browser seperately.So any one can suggest me any table for my work.
 
Sunetra Saha
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting html <form input="text"> for each cell of the html table :-)
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you are saying is that you want to be able to edit rows in a database table both from a JSP and from a user's browser (presumably using jdbc).
JDBC is subject to sandbox rules - this is why it runs in the applet viewer but not in a web browser. To get around this, you'd need to produce a signed applet.
Generally, it's not worth the trouble. It's easier to have the server do all the database access (also usually cleaner). If you want to edit the table using a grid control (e.g. Swing table) instead of HTML, what you'd do is open an http tunnel from inside the applet to the webserver and send and recieve updates via this tunnel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic