I'm having a dandy of a time trying to get an instance to a singleton within my jsp page. This singleton contains the a HashMap of field labels of the input fields. Anyhoo, when I call the singleton's getInstance() method, the app pretty much hangs, no errors that I can see. I'm using Visual Age 4.0 WTE and a Model 2 architecture. Here's the code for the JSP:
<%@ page import="service.ContentService" %> <jsp:useBean id="bean" scope="page" class="bean.HelloBean" /> <H1>Who are you?</H1> <br> <!-- this is what's causing it not to respond --> <% ContentService service = ContentService.getInstance(); %> <input type="text" value="<%=bean.getName()%>" > </BODY> </HTML>
Joined: May 29, 2001
Nevermind. I had a compile problem in an underlying class that was the root of the problem. I'm curious as to why my ContentService class compiled in the first place, but that is another matter all together!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Trouble accessing a singleton within a JSP page!