• 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

can't access servlet from jsp

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All;
Well i am trying to access servlet from jsp.My jsp file is putten in
path
g:\tomcat4\webapps\examples\web\client\login\Login.jsp
My servlet is putten in the path
g:\tomcat4\webapps\examples\WEB-INF\classes
My jsp code is as follows.
<form method="GET" action="../../HelloWorld">
<center>
<table border>
<tr><td>USERDID:</td>
<td><input type=text name=userid></td></tr>
<tr><td>PASSWORD:</td>
<td><input type=password name=password></td></tr>

<table>

<br><INPUT TYPE=SUBMIT VALUE=SUBMIT>

</center>
</FORM>
Thanks
Jawwad Ahmed
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the action attribute of the form should probably be:
/servlet/yourservletname
rather htan what it is now unless you do know well how to set the web.xml correctly so that the servlet can be got from:
yourserver:8080/examples/web/yuorservlet
or whatever
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic