• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Few questions about compiling jsps

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are beginners and we create our first J2EE application using Spring (+ Hibernate). We have a few questions regarding jsp pages.

We noticed this
- Build aplication generates .java and .class file to every jsp page (in class directory corresponding to source file directory) - ok.
- But Running aplication and going to some page for the first time causes another generation of .java, .jsp and .jpa files with names for example such as _Subdir_5c_PageName in class root direcory.
- Going there another time is then fast (no compilation).

Our questions :
- Why the second compilation ?
- Why the storage in the class root ?
- What is the .jpa files for ?
- Can the 'on the fly' compilation be done before going to page ?

Thanks.

Thanks
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your IDE is perhaps building the pages in the wrong place? Then when the container needs the page translated and compiled, it does it on its own.

Depending upon your container (Tomcat?), pre-compilation may be possible.
 
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic