Hi I am facing a problem while running any jsp code
From my html page i am tring to pass a name to jsp and print it there
Everytime i click on submit it just goes to the jsp and shows the entire code instead of executing it
say here is my html program named ccform.html
And my jsp is named ccform.jsp
Now whenever i click on submit in html form the output i get in the browser is
Verify credit card info
Name = <%= (String)request.getParameter("name")%>
>And the path that is shows on top of the browser is
What is the url for the html page you are opening to submit the form from?
When you submit the form on your HTML page, it should try and load ccform.jsp which is in the same directory as the html page.
The fact that it ends up being a a file reference, indicates to me that you are loading the html page by double clicking it - ie opening it directly on your computer rather than through the server.