This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 317
    
    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?
 
Similar Threads
403 Forbidden Error - Will only serve files, not servlets?
ReverseServlet.java
Correct name in action for Servlet-2
Servlet container
JavaRanch Email Slow