I'm working on a web application made with java servlets and sql. It has data collected from forms and stored into the database. There is also a page with a listing of all the stored stuff, and a chance to view each entry separatly.
I would also like to have the ability to edit each entry, and I'm trying to figure out the simplest way of doing it. On the page that displays a single entry, there would be a link to edit it.The page displaying them allready does a database lookup to get the data, so I think it would be silly for the editing page to do one too.
So what would the best way be? Can I send the data somehow (like hidden form data without a form) from the servlet to the other? Or should I use HttpSession or cookies (I would prefere not to use cookies as I don't need them for anything else).
I've done a few simple servlets, but don't know too much about this...
edit: if it makes a differance, I just need to move a few Strings
I would also like to have the ability to edit each entry, and I'm trying to figure out the simplest way of doing it. On the page that displays a single entry, there would be a link to edit it.The page displaying them allready does a database lookup to get the data, so I think it would be silly for the editing page to do one too.
So what would the best way be? Can I send the data somehow (like hidden form data without a form) from the servlet to the other? Or should I use HttpSession or cookies (I would prefere not to use cookies as I don't need them for anything else).
I've done a few simple servlets, but don't know too much about this...
edit: if it makes a differance, I just need to move a few Strings