geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purdticker <core...@rocketmail.com>
Subject Injecting EJB directly into a JSP
Date Wed, 02 Jul 2008 01:21:03 GMT

At the top of my jsp:

<%!
@EJB(name="ejb/ReportTrends")
private ReportTrends rt;
%>

Within the body tags:

    <%
    if (rt != null) {
    	out.println(rt.getData());
    }
    else {
    	out.println("rt is null");
    }
    %>

The page displays "rt is null".

I've tried this same code inside a servlet and rt is not null.  Is it
possible to inject an EJB directly into a jsp?

If this is a bug, please create a JIRA.
-- 
View this message in context: http://www.nabble.com/Injecting-EJB-directly-into-a-JSP-tp18228470s134p18228470.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message