tags:

views:

38

answers:

2

Or APIs accessible by standalone java applications also accessible by jsp?

+3  A: 

Everything you can do in a standalone Java application, you can do in a JSP. However, this isn't the recommended way of doing things. It is better to keep Java code in servlets or beans and have only the presentation layers in JSPs. Using taglibs is the way to go.

kgiannakakis
A: 

Yes, as JSP is compiled into a servlet you can access all the regular APIs. However, be aware that servlets are each run in a separate thread. Only use thread safe APIs in JSP pages.

Adam