• 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

preserving/locating java files created from JSPs

 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new to JSP, and am trying to follow along with a textbook in which we look at the differences between JSP files and the java files created from them. I'm using Tomcat and IntelliJ IDEA, both recent versions. Whenever I compile my project (which is just downloaded code from the textbook) everything works fine, I get accurate results in my browser. The problem is I can't for the life of me find the .java files that are supposedly created. It seems like they're supposed to be in the tomcat directory but they aren't, and I can't find them anywhere else and am coming up empty on windows search. So I'm thinking the files are getting deleted. So how would I stop this from happening?
 
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
Look in the work folder under wherever you installed Tomcat.

As a newcomer to JSP, you might also want to read this article.
 
Bear Bibeault
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
Also, this one. it might be a bit advanced at the moment, but it should give a good idea where you should be heading, and you can bookmark it to read again later.
 
Bear Bibeault
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
P.S. If you are running Tomcat under the IDE -- which I do not recommend -- it might be configured differently. But by default it creates the generated files under work.
 
Tyson Lindner
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the links, yeah its not under work and doesn't seem to be anywhere else in my tomcat directory.

Other thought, is it possible for the java files to be saved/used as some other type of file?

edit: and I am running tomcat through the IDE :(
 
Bear Bibeault
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

Tyson Lindner wrote:Other thought, is it possible for the java files to be saved/used as some other type of file?


Like what?

edit: and I am running tomcat through the IDE


And this kind of nonsense is one of the reasons I don't recommend it. Too much IDE-specific goop and complexity.

I use IntelliJ as an advanced text editor and run a standalone version of Tomcat that I have complete control over.
 
Tyson Lindner
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:
Like what?



I'll take that as a no.


And this kind of nonsense is one of the reasons I don't recommend it. Too much IDE-specific goop and complexity.



Yeah configuring IntelliJ to Tomcat seemed overly complex and I probably put it on some obscure setting by accident. Its not really urgent, so I'll probably just follow along with the textbook as best I can and use Tomcat separately whenever I try to build something myself.
 
Bear Bibeault
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
To be honest, you are not missing much. It used to be more instructive to see the generated Java code, but in modern JSP engines, it ends up being mostly calls to container-specific methods that don't mean very much to the JSP author.
 
Look ma! I'm selling my stuff!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic