Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL and using SINGLETON

843836Dec 28 2004 — edited Dec 29 2004
I have modified an existing data bean to be a singleton, now with the constructor being private my JSP is no longer able to instantiate the data bean. I explicitly instantiate the new constructor and still get no results below is some of my code. Any advice would be appreciated.

<wcbase:useBean id="mfname" classname="com.example.commerce.jspdatabeans.MfnameDataBean" />
<%
mfname.getInstance();
%>

<c:forEach var="topMfname" items="${mfname.mfNames}">
<option value="<c:out value="CategoryDisplay?storeId=${WCParam.storeId} &catalogId=${WCParam.catalogId}&top=Y&categoryId=${topCategory.categoryId}"/>">
<c:out value="${topMfname}" escapeXml="false"/>
</option>
</c:forEach>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2005
Added on Dec 28 2004
4 comments
228 views