Hi, Im using Tomcat 4.1 and Mysql. We have a servlet which collects the information from the database, stores 3 set of individual arrays in one object & returns the same. We need to capture this & display the contents of the individual arrays in the jsp. How do we do it ? Any links that give examples as to how to get info from database into JSP?
What's your datastructure that's exposed to the JSP look like? Using JSTL you can access just about anything inside any Object that you put in your session or request (for example).
posted 13 years ago
My java classes are in ..\Tomcat 4.1\webapps\onjava\WEB-INF\classes\com\onjava My jsp's are in ..\Tomcat 4.1\webapps\onjava I actually need to call a java class from jsp which inturn returns an object. I am just unable to retrieve that object. I guess the problem is with the import statement which I have given inside the jsp. I tried giving <%@ page import = "WEB-INF.classes.com.onjava.*" %> & also <%@ page import = "com.onjava.*" %> The error is HTTP Status 500.
A feeble attempt to tell you about our stuff that makes us money