Darn it all!
The jsp should look like this. I forgot to
take my own class name out of a few lines.
<%try{
System.out.println((request.getAttribute("thebean") == null)); System.out.println((request.getAttribute("thebean") instanceof com.blah.blah.AnyCustomBean)); System.out.println((request.getAttribute("thebean").getClass().getName())); System.out.println((com.blah.blah.AnyCustomBean)request.getAttribute("thebean")); }catch (ClassCastException e){ System.out.println("CLASS CAST EXCEPTION!"); } %>
|
Title: Re: problems installing tomcat on linux
- RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Bhat, Mahesh
- Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Leon Palermo
- RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Bhat, Mahesh
- Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Leon Palermo
- Re: (EXPERTS ONLY) Bean Creation in Dispatch Ser... Leon Palermo
- Re: (EXPERTS ONLY) Bean Creation in Dispatch... Leon Palermo
- Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Leon Palermo
- RE: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Bhat, Mahesh