Hi,
I have deployed my folder called Library in web apps tomcat5.5, i can find my folder in the tomcat manager, but when i click its showing this error: requested source in not available (Library)
As i am new to this i dont know how to proceed please help me out.
i given my code below.
in folder library
i have created 2 more folder WEB-INF and html file
In WEB-INF- src,classes,web.xml
so in html file the fallowing code is written
<html>
<head><title>Login Page</title></head>
<body>
<form method=get action="/servlets/login">
<table>
<tr>
<td>Name: </td>
<td><input type="text" Name="name"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" Name="password"></td>
</tr>
<tr>
<td><input type ="submit" value="submit"></td>
<td> </td>
</tr>
</table>
</body>
</html>
in src file the following code is written
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class valid extends httpservlet
{
public void doGet(HttpServletRequest res, HttpservletResponse res)throws IOException, ServletException
{
res.setcontent type("text/html");
PrintWriter out = res.getWriter();
String name = req.getParameter("name");
String password = req.getParameter("password");
out.println("<html>");
out.println("<head>");
out.println("<title> login page </title>");
out.println("<body>");
out.println("Name "+ name);
out.println("<br>");
out.println("your password is " + password );
out.println("</body>");
out.println("</html>");
out.close();
} //end of service
} //end of class
in web.xml the fallowing code is written
<web-app>
<servlet>
<servlet-name>firstservlet</servlet-name>
<servlet-class>valid</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>firstservlet</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
</web-app>