aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes where to place java file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "where to place java file" Watch "where to place java file" New topic
Forums: JSP IDEs, Version Control and other tools
Author

where to place java file

rvr raj
Greenhorn

Joined: Mar 30, 2013
Posts: 1
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

Joined: Aug 22, 2010
Posts: 3610
    
  60

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

Joined: Aug 11, 2011
Posts: 440

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.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: where to place java file