This content has been marked as final.
Show 2 replies
-
1. Re: EJB injection in JSP in AS7?
wolfgangknauf Apr 18, 2012 4:05 PM (in response to wolfgangknauf)Hi,
anybody with some clarification for me ;-)?
Best regards
Wolfgang
-
2. Re: EJB injection in JSP in AS7?
erhard Apr 18, 2012 5:42 PM (in response to wolfgangknauf)I tried a similar thing with @Inject in a JSP and failed. See: https://community.jboss.org/message/717711#717711
I did some search, but couldn't find anywhere that this would be supported by the spec. So I used EL in the JSP like:
<h3>Inject Test ${person.name}</h3>
and @Named in the Bean, which can be an EJB:
import javax.inject.Named;
@Named
public class Person {
...
Maybe this helps in your case?