• 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

Problem calling a jsp from html

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using Tomcat and the service is well started.
I have a form that calls a validation page (ShowValues.jsp) but when i press the submit button, nothing happen. What's wrong???
Here is the form tag:
<form name="Personnel" method="post" action="ShowValues.jsp" onSubmit="return validateMe(this)">
The validateMe() function works well but nothing happen after that.
Thanks
Jeff
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

what exactly does the ShowValues.jsp do?
Also, do you see any exceptions in the tomcat window?
- satya
 
Jeff Dube
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, there is no error in the Tomcat window.
The ShowValues do the following One of many)
...
<tr>
<td align="right">
<B>Classe de permis de conduire</B>
</td>
<td align="left">
<%request.getParameter("Classe");%>
</td>
</tr>
Thanks
Jeff
 
Jeff Dube
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ShowValues is a confirmation page to show to the user was as been enterred.
This page have a button to insert the data into the database so it is just a validation page.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds like a javascript problem. Is your validateMe function returning a boolean? If it does not return true the form will not submit.
I have a form that calls a validation page (ShowValues.jsp) but when i press the submit button, nothing happen. What's wrong???
Julio Lopez
M-Group Systems
[This message has been edited by Julio Lopez (edited June 29, 2001).]
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try to give the full path in your action attribute. Like action="http://localhose:8080/youApp/YourJsp.jsp". Also, do a simple System.out.println statement in your target jsp file to verify the jsp file is invoked by your button. I suspect you do not put the form element correctly. If you don't give the correct path, you should see 404 error on your browser. Check to see if you enclose the <Input> element with your <form> </form> correctly.
[This message has been edited by SoonAnn Lim (edited June 29, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic