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
<head><title>Login Page</title></head>
<form method=get action="/servlets/login">
  <td>Name: </td>
  <td><input type="text" Name="name"></td>
 <td><input type="password" Name="password"></td>
 <td><input type ="submit" value="submit"></td>

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("<title> login page </title>");
	   out.println("Name "+ name);
	   out.println("your password is " + password );
	} //end of service

} //end of class

in web.xml the fallowing code is written


That happens because when you click on your web application directly from tomcat, it goes to the ROOT of your web application and unless you have a set a welcome page in your web.xml ( or enabled directory listing) you are bound to get that error.

So to actually display your html page in your browser you would have to type "http://localhost:8080/<webappfolder>/<htmlpage>"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.