This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs are not managed?

 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm reading EJB3 in Action, page 440.

The authors are discussing how you only get DI if the classes are "managed" - i.e. their lifecycle is managed by the container.

Servlets are listed as managed, and so get DI.
JSPs are listed as not getting DI.

But isn't a JSP just compiled into a Servlet anyhow? Seems an odd distinction?

Thanks,

MG
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic