Sunny
Sunny

Reputation: 2154

How does container handles JSP

When did jsp is actually loaded (at startup or first request)as we have this option for servlets. If its at first request then how does server knows that this is the first request.

Upvotes: 0

Views: 79

Answers (1)

BalusC
BalusC

Reputation: 1109222

When did jsp is actually loaded (at startup or first request)

On first request. It's however also possible to let the server send a request to itself on startup. Alternatively, you could precompile JSPs during build before deploy. See for details also the following related questions:


If its at first request then how does server knows that this is the first request.

When there's no compiled JSP class available in server's memory. So it does not exactly check if the request is a first request, but just if the requested JSP is already compiled.

Upvotes: 1

Related Questions