I have installed ...
1) jdk 1.7.0_03
I have tested tomcat by accesing http://localhost:8080.
Its working fine.
and also jdk is working fine.
I want to learn jsp.
I have create one folder in webapps named basic.
In basic i have created one more folder WEB-INF.
i have created one file called date.jsp which stored in basic folder
and one more file i have created called web.xml which stored in WEB-INF folder.
Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
I've gone ahead and added the code tags for you. See how much easier the code is to read?
Joined: Aug 20, 2012
Thax for quick reply.
But i did not get.
How it remove?
OK, so that means that Tomcat is running. Have you checked the logs to see if there are errors that prevent your app from deploying?
After that, I'd get the Tomcat Manager set up so you can see what's running and what's not. See the Tomcat documentation for details.
Joined: Aug 20, 2012
Now I am reffering HeadFirst for servlet and Jsp .
I have created here Beer-v1 project.
here i have created one servlet class, one module i.e. plain java class, and one html form.
I am taking the output or response on the screen through servlet by using PrintWriter.So its working properly.
But when i used jsp for response by calling the jsp file from servlet its giving error.I have compiled the servlet after calling jsp file.It gets compiled properly.
but thrwing the error >>>> The requested resource (/Beer-v1/result.jsp) is not available.
I have put jsp and html files in Beer-v1 folder.
web.xml > WEB-INF
.class files in classes/com.example.model and classes/com.example.model.
But the one thing is that I saved html file in Beer-v1 folder, i observed that the type of file is Html, but i saved jsp file then the type file is text.