Can someone help me with this code.
I want to put a dropdown list in this
servlet form, please I need help in rewriting this code. (On the MDA Name i need a dropdown list)
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class InboundCaseLog extends HttpServlet
{protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
String mess1 = req.getParameter("message");
out.println("<HTML><HEAD><TITLE>Inbound Case Log</TITLE></HEAD>"+'\n'+
"<BODY BGCOLOR='lightgreen'>"+'\n'+
"<P><H2 ALIGN=CENTER>NEW INBOUND CASE LOG ENTERING </H2");
out.println("<html><head><title>Inbound Case Log</title></head>");
out.println("<body bgcolor = 'lightblue'>");
out.println("<form method = \"post\" action = \"http://localhost:8080/servlet/Relay\">");
out.println("ReferralID: <INPUT type = \"TEXT\" size = 20 name = \"RefID\"><P>");
out.println("MDA Name: <INPUT type = \"TEXT\" size = 20 name = \"MdaName\"><P>");
out.println("MDA Contact Name: <INPUT type = \"TEXT\" size = 20 name = \"MdaC\"><P>");
out.println("Contact TelNo: <INPUT type = \"TEXT\" size = 20 name = \"Tel\"><P>");
out.println("Contact Position: <INPUT type = \"TEXT\" size = 20 name = \"Position\"><P>");
out.println("Date Recieved: <INPUT type = \"TEXT\" size = 20 name = \"DateRec\"><P>");
out.println("Project Name: <INPUT type = \"TEXT\" size = 20 name = \"PName\"><P>");
out.println("<INPUT type = \"submit\" value = \" Send Details\"<P>");
out.println("<INPUT type = \"hidden\" name = \"choice\" value = \"CaseLogEntry\"><P>");
out.println("</form></body></html>");
}
}