Vector « Bean « JSP-Servlet Q&A





1. How to retrieve a Vector of beans without using taglib ?    coderanch.com

Hello, I have a "MyServlet.java", "My.jsp" and "ItemList.java" which is a bean class. First "MyServlet.java" handles some business logic and then feeds a Vector of items into "ItemList" bean and creates a vector of Litemlist bean, then do request.setAttribute("ItemListVec", v); and forward(request, response) to "My.jsp". Question is-- In "My.jsp", if I don't use taglib, and just want to use ...

4. Vector from bean to servlet?    coderanch.com

I'm getting nullpointer exception when I pass a resultset turned into vector from a bean to a servlet. I can pass the vector from the bean to a JSP page without problems. My code below. The error happens at this point "rs = (Vector)d.getQueryresult();" package sqlQuery; import java.sql.*; import java.util.Vector; import java.util.Hashtable; public class QueryBean { private String JdbcDrv; private String ...