neeta h

Greenhorn
+ Follow
since Nov 26, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neeta h

hi swati
there is no need to give physical path. u can do it this way
<form method="GET" action="../servlet/servletreq">html form
though directory is servlets use "../servlet/xyz" where xyz is ur servlet class file.
use getParameter() method to acess form fields
hope this will help u.
Neeta
23 years ago
hi mamta
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class testservlet2 extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException
{
PrintWriter out=res.getWriter();
res.setContentType("text/html");
out.println("<html>");
out.println("<head>");
out.println("<title>");
out.println("Employee Home Page");
out.println("</TITLE>");
out.println("</head>");
out.println("<body background='../images/pmsnlogo.gif'>");
out.println(e.getMessage());

out.println("</body>");
out.println("</html>");

}
}
hope this will help.
neeta
23 years ago
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class testservlet2 extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException
{
PrintWriter out=res.getWriter();
res.setContentType("text/html");
out.println("<html>");
out.println("<head>");
/*out.println("<meta http-equiv=\"Content-Language\" content=\"en-us\">");
out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">");
out.println("<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">");
out.println("<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">");*/
out.println("<title>");
out.println("Employee Home Page");
out.println("</TITLE>");
out.println("<SCRIPT LANGUAGE=javascript>");
out.println("<!--");
out.println("function window_onload() { alert(\"Hello\") } ");
out.println("//-->");
out.println("</SCRIPT>");
out.println("</head>");
out.println("<body onload=window_onload()>");
out.println("</body>");
out.println("</html>");

}
}
neeta
23 years ago