title: CDI injection in a JSP
body: <p>Within a JSP it is possible to use CDI managed beans using EL expressions such as ${myBean.myAttribute}. No problem here.</p>
  
  <p>I would like to use "regular injection" (i.e. without using EL expressions) with @Inject in JSP files, for example :
  &lt;%! @Inject MyBean myBean; %> then later &lt;%= myBean.getMyAttribute() %>. Even if that example can be achieved using EL expressions, some other use cases cannot.</p>
  
  <p>This does not seem to be completely supported by app servers:<br>
  - JBoss 6.0.0, JBoss 6.1.0, Resin 4.0.22: OK, it works just fine.<br>
  - JBoss 7.0.1, GlassFish 3.x (several versions were tested): FAILS, myBean remains null.</p>
  
  <p>It should work fine in a JSP since :<br>
  (1) it works fine in servlets according to the various concerned specifications and<br>
  (2) JSP get translated to servlet during runtime.</p>
  
  <p>Do you guys know if what I'm trying to do is supported or not? Any inside/implementation information maybe?</p>