I think you should look into using a proper IDE like Eclipse or Netbeans for this kind of stuff. That would also give you the power of inline validation.
When it comes to adding a Java bean/class to the request/session so you can use it in your JSP file all you need to do is this.
final MyJavaBean myJavaBean = new MyJavaBean();
request.setAttribute("nameOfTheBean", myJavaBean);
Now in your JSP all you need to do is get the bean off the request.
final MyJavaBean myJavaBean = (MyJavaBean) request.getAttribute("nameOfTheBean");
Now this is not really best practise and instead you should use something like JSTL for this.
Have a look at
JSTL 1.0: What JSP Applications Need, Part 2 - O'Reilly Media
// Json