
I am developing a simple application in servlet, Which will accept a name and after produce the name with Welcome Message.
I am using Weblogic 8.1.
My Html Page is
<html>
<head><title>WEb Application</title></head>
<body>
<form method="get" action="WelcomeServlet">
NAME :<input type="text" name="txtname"><br>
<input type="submit" value="SUBMIT">
</form>
</body>
</html>
And, My Servlet Page is
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class WelcomeServlet extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
String name=request.getParameter("txtname");
response.SetContentType("text/html");
PrintWriter out = response.getWriter();
out.println("WELCOME"+name);
out.close();
}
}
Please , tell me the complete procedure to it , its directory structure, and weblogic 8.1 configuration for it.
Thanks & Regards,,
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.