This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 17018

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSP
It's not a secret anymore!