Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP recompilation  RSS feed

 
Sekhar Chand
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
i have one doubt in jsp life cycle. After starting the server if you change any jsp file it is compiling again and .class file is creating again. but how its happening automatically , who identifies this automatically. Even if we delete java file after server started, in the next reuest its creating again.
How its going please give me detail description regarding this
thanks in advacne
nani




[BPSouther: added meaningful subject line]
[ June 11, 2007: Message edited by: Ben Souther ]
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSPEngine does the job of locating the .java file and compiling it.
The Java class loader does the loading of latest .class files into the application for processing.

Check these links.. it may help you..

  • JSP File
  • Life Cycle of a JSP Page (Sun's J2EE Tutorial)
  • JSP Life Cycle (part of J2EE 1.4 Tutorial)
  • Servlet & JSP LifeCycle

  •  
    Muhammad Saifuddin
    Ranch Hand
    Posts: 1325
    Android Java Windows
     
    Sekhar Chand
    Ranch Hand
    Posts: 73
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I am asking whether the jasper engine will convert that jsp file into java file and compiles it every time or not. After server starts
     
    Ulf Dittmer
    Rancher
    Posts: 42972
    73
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Originally posted by Sekhar Chand:
    I am asking whether the jasper engine will convert that jsp file into java file and compiles it every time or not. After server starts


    Compilation is done once, and then not again until the JSP (or one of its components) changes. The "automatic-recompilation-if-changed" is generally only useful during development, and thus turned off in a production setting. (It does take time to check for changes every so often.)
     
    Ben Souther
    Sheriff
    Posts: 13411
    Firefox Browser Redhat VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Sekhar Chand,

    In an effort to help you get the most from our forums, we've compiled a
    list of tips for asking questions here. You can find the list in our
    FAQ section here.
    In particular please see:
    UseAMeaningfulSubjectLine

    I've changed your subject line from 'a typical and basic question' to something that is more meaningful.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!