• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 339
7
Tomcat Server Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks

I'll give that a bash in a while

Cheers

 
reply
    Bookmark Topic Watch Topic
  • New Topic