Results 1 to 3 of 3
- 03-31-2012, 07:46 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 14
- Rep Power
- 0
fix this problem to compile the code
package com.example.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class BeerSelect extends HttpServlet
{
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWriter();
out.println("Beer Selection Advice<br>");
String c=request.getParameter("color");
out.println("<br>Got beer color:"+c);
}
}
This is my servlet code and i have saved it in this directory
D:\all\tomcat6\tomcat6\webapps\Beer-V1\WEB-INF\classes\com\example\web
than i am compiling it from the directory like this: D:\all\tomcat6\tomcat6\webapps\Beer-V1\WEB-INF\classes\javac com.example.web.BeerSelect.java
but it it showing some error like class not found ?? is the problem help me to compile this code.
- 04-01-2012, 06:25 AM #2
Re: fix this problem to compile the code
Use code tags, not bold tags, for posting code.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-31-2012, 09:57 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 41
- Rep Power
- 0
Similar Threads
-
I cant get my code to compile Need help please
By MikeJ39 in forum New To JavaReplies: 6Last Post: 10-15-2011, 06:28 AM -
Can not compile code , anyone help me fix it ?
By batista11b5 in forum New To JavaReplies: 3Last Post: 10-22-2010, 02:00 PM -
Code does not Compile
By ustar in forum New To JavaReplies: 13Last Post: 03-06-2010, 04:54 PM -
Code will not compile
By ShotGunRockets in forum New To JavaReplies: 17Last Post: 05-10-2009, 03:31 AM -
simple problem - code wont compile
By dirtycash in forum New To JavaReplies: 1Last Post: 11-20-2007, 05:49 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks