JSP Insert Bean and multiple tables
Posted on 2003-02-25
first of all sorry my english!
I'm new to JSP and especially Javabean issues but i know something about Java.
I need to build a form (html) where i insert values in two tables. Imagine my tables like this:
Field_integer Field_ID_A (FK)
I know that i should do this using a Javabean instead of wrting <% %> tags inside HTML. Why? Because it's more business logic!
I'm building a JSP to do this. Two questions for you: Can i create a JavaBean that insert records in any table (saving time in future jsp's)?
Can i insert in more than one table within the JavaBean like i want to do?