Results 1 to 1 of 1
Thread: compilation error
- 04-26-2011, 08:08 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 1
- Rep Power
- 0
compilation error
hii, im new to jsp and servlet.i wrote a simple servlet program HelloWorldExample.java.The problem is i getting an compilation error.
HelloWorldExample.java:32:error while writing HelloWorldExample:HelloWorldExample.class(Access is Denied)
public class HellWorldExample extends HttpServlet{
^
i have set the classpath=C:\Program Files\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar
the program code is
public class HelloWorldExample extends HttpServlet {
private static final long serialVersionUID = 1L;
@Override
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
ResourceBundle rb =
ResourceBundle.getBundle("LocalStrings",request.ge tLocale());
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
String title = rb.getString("helloworld.title");
out.println("<title>" + title + "</title>");
out.println("</head>");
out.println("<body bgcolor=\"white\">");
out.println("<a href=\"../helloworld.html\">");
out.println("</body>");
out.println("</html>");
}
}
Similar Threads
-
Classes, compilation error
By l flipboi l in forum New To JavaReplies: 2Last Post: 02-11-2011, 07:38 PM -
bean compilation error
By technical_helps@yahoo.com in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 07-29-2009, 11:21 PM -
JAVA compilation error in UNIX
By satish kumar in forum Advanced JavaReplies: 9Last Post: 08-08-2008, 07:36 AM -
compilation error(version problem?)
By Ms.Ranjan in forum New To JavaReplies: 3Last Post: 07-11-2008, 04:31 PM -
compilation error with Jcreator
By Heather in forum JCreatorReplies: 2Last Post: 06-30-2007, 04:12 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks