• 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

Where in Javawebserver2.0 should I place my Html , Jsp and Java programs

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am not exactly knowing where I should save
HTML
JSP
Java files
in JAvawebserver2.0
Please help me
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
save u r servlets in the servlets directory. Now invoke the servlet by using
http://localhost:8080/servlet/myservlet
note the directory is <b>servlet </b> not servlets.
Regds.
Rahul
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not talking about servlets. I want to know where(
ie which directory )should I save my JSP, HTML, and JAva beans
.
I am using Javawebserver2.0 and how do I debug my JSP program
What I get is HTTP 500 error. I am not able to find out where
I have made the mistake and what is my mistake.
Please help me.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Java webserver 2.0 is compatible with the servlet 2.2 API, everything is laid out very specifically in the API. The reason being that Sun wants it to be possible to just drop in a complete application in a "WAR" for Web Application Resource file and the server will auto-magically expand that file and put the parts in their standard places.
HTML and JSP files go in the same directory because you address a JSP file just like an HTML file.
As I recall, servlet files go in Web-inf/classes relative to the application root. You have to map the name (alias) that you want to refer to the servlet by to the actual class in the web.xml file for that application. It is really pretty complicated but very flexible. It is all laid out in the servlet 2.2 API document.
The Webserver should have come with at least one complete example you can study.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTML and JSP --- public_html directory
Servlets go in servlet dir
 
Greg Belyea
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java Code ---> in servlet directory
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic