• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem calling a jsp from html  RSS feed

 
Jeff Dube
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Julio Lopez
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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).]
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!