• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to place java file

 
rvr raj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am new to java. I want to create jsp page which in turn calls java method.I would like to know where java file should be placed and jsp file should be placed And should i create any class folder manually if so where?
I am using tomcat server. Please do reply.
thanks in advance...
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

While I don't know the answer to your question, I'm not sure this is the best forum to ask it. I'll add it to the JSP forum too.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Raj,
I think what you are trying to find out is how to setup your project structure and hierarchy. I myself , and also suggest others to always follow the Standard Directory Layout. This layout was first put forward by apache for maven , however you will find it quite easy to follow , setup and understand for any project whether maven or not.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64993
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also bear in mind that putting Java code into a JSP is a bad practice that has been obsolete for over 12 years. Don't go there!

Be sure that you are learning modern JSP that uses the JSTL and EL in the JSP pages rather than Java code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic