Starting from:

$25

CS313- Lab 7 Worksheet Solved

Lab 7 Worksheet 

We have already shared the java j2ee setup handout with one servlet and html file..Do the setup,if not already done.Execute the StudentServlet file and index.html given with the handout.

Design a new html page to take advisor id as input. Write a servlet to display the department to which the advisor belongs using java j2ee program.Output should contain advisor id and department name.
You can refer to some of the following instructions : 

Place the servlet mapping code in web.xml.
Example :

Here ServletName is the name of your servlet file.

This following code snippet should be placed within <web-app></web-app> tags in the web.xml.

<servlet>

<servlet-name>ServletName</servlet-name>

<servlet-class>ServletName</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>ServletName</servlet-name>

<url-pattern>/ServletName</url-pattern>

</servlet-mapping>

You can create your own html page for reading advisor id as input.But put the name of your servlet file correctly inside the form element.
Example :

<form action=”ServletName”>

More products