I'm trying to pass an Object type from Java class to Jsp page.
After going through many sites am bit confused on how to go about with this. My Java file has this content :
Object categoryelements;
Iterator it=elements.iterator();
while (it.hasNext())
{
JSONObject innerObj= (JSONObject)it.next();
categoryelements= innerObj.get("category");
System.out.println(categoryelements);
}
I want to pass this categoryelements to JSP page.
Is it possible to do so? Am making use of JSP page, Servlet and a Java page
Can you please provide a solution for this?