JSP SQL Actions and DB Beans

All of the function available through these JSP actions is also available in JSP pages by using the jsp:useBean action to create a DBSelect, DBProcedureCall, or DBModify bean and then using scriptlets to execute methods on the beans. The JSP SQL actions are provided for convenience when the full flexibility of the DB Beans is not required. The limitations when using the JSP SQL actions vs. using the beans directly include the following:

Test Tutorial Link

You can get and set any properties of the DBSelect, DBModify, and DBProcedureCall beans using the standard JSP actions <jsp:getProperty> and <jsp:setProperty>, but some of them will not prove useful. (For example, you could set the lockRows property of a DBSelect bean, but it would not accomplish anything for the reasons described above.)

You can also mix use of actions in the JSP SQL Tag Library and direct use of the DB Beans. If you create a DBSelect bean using the x:select action, you can execute its methods in scriptlets.