This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dan Rh Jones
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 335
6
Linux Tomcat Server Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

I'll give that a bash in a while

Cheers

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic