• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How do I make this readonly?

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Basically this is a page, where I can modify product details and update them into the database.

Here is my code, I am not familiar with Hashtable , but I know that it is retreiving data from my database and displays them like a text box on page based on the corresponding ID. I got one issue with this, I wish to make "h.get(MANU_ID)", readOnly, so that it can't be edited.

I've searched the internet, but I couldn't find any help in how I could go about doing this.

At the moment, if any error occurs during, I have no exception handling, if someone could put a try and catch block in the right places in this code, I'd be happy.
 
Ranch Hand
Posts: 108
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I wish to make "h.get(MANU_ID)", readOnly, so that it can't be edited.


HTML table is read-only by default. Are you missing any information here ? In the mean time, check this out.

About exception handling, think what you'd like to do in case of exception. Do you want to display a different page or an empty table or an error page.
reply
    Bookmark Topic Watch Topic
  • New Topic