I think the answer is NO. Because your user make the click in the browser, but your beanid.insertRow() has to happen in the server. In other word, you have to submit the information to the server. You can do something like this: <TD> Insert <a href= some_path/rowhandling_servlet?action=Insert+rowValue=\match\> </TD> Hope this help J.h -----Original Message----- From: Matt Brown [mailto:[EMAIL PROTECTED]] Sent: Friday, March 17, 2000 11:15 AM To: [EMAIL PROTECTED] Subject: writing to db on button click I want to insert some buttons on a jsp page, that when clicked would each write a different predetermined row of data into a db. Is it possible to do this without using a form and servlet that would redisplay the page? I want the buttons to interact with db methods directly without affecting display. Is it possible to access beans via a bean id such as: out.println(" <TD><input type=\"button\" name=\"match\" value=\"match\" onClick=\"beanid.InsertRow()\"> "); ? Thanks, Matt =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
