![]() Hurray! Our First Servlet class is running.Click on the link created, to open your Servlet.Run your application, right click on your Project and select Run.In the web.xml file you can see, we have specified the url-pattern and the servlet-name, this means when hello url is accessed our Servlet file will be executed. We have created a hyperlink to our Servlet in our HTML file. Write some code inside your HTML file.Index file is read as the first page of the web application. We recommend you to name it index, because browser will always pick up the index.html file automatically from a directory. ![]()
0 Comments
Leave a Reply. |