This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Cattle Drive and the fly likes What should my folder structure look like for the servlets assignment? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "What should my folder structure look like for the servlets assignment?" Watch "What should my folder structure look like for the servlets assignment?" New topic
Author

What should my folder structure look like for the servlets assignment?

Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
Hi

I am a bit baffled as to how I should be puting files for the reverse (and onwards) assignment for Servlets 2

This is how I have my folders and file at the moment.


and this in the reverse.html

<form method='post' action='Reverse'>

it ain't working.

So my question is... where should the html sit and what path should I use in the action= bit?

I assume that it makes no difference if I use OSX? a path is a path?

Cheers

Dan
margaret gillon
Ranch Hand

Joined: Nov 12, 2008
Posts: 318
    
    5

I don't know if you are using an IDE like netbeans or eclipse ? Each of those has their own file structure for the project for creating the project. The problem might also be your web.xml.

When the servlet is deployed to Tomcat \ webapps\ the reverse.html goes directly under the project directory




Here is my web.xml, please note my servlet is named reverse2 instead of reverse. Your web.xml needs to know where the html file is and where the servlet is. Your html needs to be in the <welcome-file-list> xml.

Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
Thanks

I'll give that a bash in a while

Cheers

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What should my folder structure look like for the servlets assignment?