File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic



Joined: Jul 31, 2001
Posts: 1
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

Joined: Feb 25, 2001
Posts: 77
Try putting html <form input="text"> for each cell of the html table :-)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSP
jQuery in Action, 3rd edition