/    Sign up×
Community /Pin to ProfileBookmark

how does jsp transform to servlet ?

I read in a book that jsp is transformed to servlet. How does that happen ?

Servelt has code like “public class SomeServlet extends HttpServlet { ……………”
When a jsp is compiled, how does it derive this code ? what name will this servlet get ? I am confused with this. Please explain this mechanism of jsp getting transformed to servelt.

thanks

to post a comment
Java

2 Comments(s)

Copy linkTweet thisAlerts:
@chazzyApr 16.2009 — the jsp compiler on the app server acts more like a code generator. it inspects the jsp file, plugs in code where it needs to, then lets the JDK compile it.
Copy linkTweet thisAlerts:
@grace2009Apr 17.2009 — The jsp file will compile only at the run time and it will store as compiled java file

with the name _JSP in another path inside the server.


If you need to know full details about how to create and deploy and execute Servlet, JSP, EJB, BMP, CMP, database ... you can visit the following website. I think about jsp is also clearly explained in this website. The website is: www.j2eetutorials.we.bs
×

Success!

Help @jigneshjsoni spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...