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>
posted 14 years ago
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!