Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

jsp with servelet execution in tomcat

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hiii , this is ma jsp code , "Authentication.jsp"


This is ma java code "Authentication.java"



This is ma xml file "web.xml"



I have stored the "Authentication.jsp" and "web.xml" under "JSPMultipleForms" folder, which is under "webapps" folder
The class file stored in the "classes" folder which is under "JSPMultipleForms".

url used for runninng is "http://localhost:8080/JSPMultipleForms/Authentication.jsp" , when i press the "check button" i got these errors

HTTP Status 404 - /JSPMultipleForms/Authentication5

type Status report

message /JSPMultipleForms/Authentication5

description The requested resource (/JSPMultipleForms/Authentication5) is not available.

Apache Tomcat/6.0.20

Please help me how to solve this hurdle....
 
dhanil das
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got the solution now

"classes" folder and "xml" file stored under "WEB-INF" which is under "JSPMultipleForms"

"Authentication.jsp" stored under "JSPMultipleForms" folder

use the url "http://localhost:8080/JSPMultipleForms/Authentication.jsp"

perfect it's working now .
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic