File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

where to place java file

rvr raj

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

Joined: Aug 22, 2010
Posts: 3733

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
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: where to place java file
It's not a secret anymore!