Skip to content

JSP Architecture

Java Server Pages are slightly different from HTML pages because JSP pages contains Java Code inside them.

In this chapter we will see JSP Architecture. As you all know JSP is a server side technology where code is executed at server side.

I hope you’ve learn how to run JSP application on Tomcat Server. Basically Tomcat contains JSP engine which is responsible to execute JSP application.

Similarly, we need JSP engine and some other components to execute our JSP application.

Let’s understand.

jsp-architecture

JSP Processing:

  1. Web Browser sends a request in the form of HTML or JSP page to the server.
  2. The web server recognize the coming request by looking at (.html) or (.jsp) extension.
  3. JSP page is forwarded to JSP Engine.
  4. JSP page is converted into the Servlet and generate the Java code (.java)
  5. Java code is compiled to (.class)
  6. Compiled code is forwarded to JSP container and executes it.
  7. After execution, the request is sent back to the client browser.

Typically, to make JSP more efficient and faster, before executing any JSP page, JSP Engine checks whether a servlet for incoming JSP request exists in the container or not. If yes then no new processing will be held in the container.

IMPORTANT: JSP Container(Engine) has two different engines – called Catalina and Jasper. For example Tomcat Server.

Catalina is a Servlet Engine and Jasper is a JSP Engine.

Afterall JSP is converted to Servlet, then

  1. Why we are writing JSP pages?
  2. Why we are not learning Servlet only?

I would say, Java server pages are extension to Servlet because we don’t need to take care of complex Java Code and there is no need to insert HTML into Java code, that looks confusing and hard to learn.

Here, JSP architecture very well defines how you can easily integrate Java and HTML and run on server as like Servlets and all is taken care by JSP Engine.

I hope you’ve understood JSP Architecture and it’s working.

JSP in Eclipse – Environment Setup

JSP Life Cycle

Leave a Comment Cancel reply

资讯网农产品网站制作姓曹男孩起名字啊核心显卡网络运营营销推广公司视频加速器女生起名古风单字睡神的名字冬至养生篇父亲姓孙母亲姓王起名月经周期很规律容易怀孕吗找营销推广团队沂南辛集谎言bt天堂最新电影打印机拒绝访问起名黄诗什么好听咸阳电视台他在逆光中告白电视剧百度云专业新生儿起名字大全免费鼠宝宝起名大全白酒营销推广方式崇阳的美食公子无耻校花梦工厂1破解版下载婴儿起名软件哪个邱氏少女起名大全周易风水地下室如何用父母的名字给孩子起名工业设计兼职网站营销策划公司起名大全少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

资讯网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化