Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet deployment of servlet
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


maverick
deployment of servlet
1 Answer(s)      6 years ago
Posted in : JSP-Servlet



Advertisement
View Answers

January 1, 2009 at 11:51 PM


Hi friend,

Check your code having some error and correct code is below :

"Beerselect.java"

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class Beerselect extends HttpServlet
{
public void doGet(HttpServletRequest rq, HttpServletResponse rs) throws IOException,ServletException
{
rs.setContentType("text/html");
PrintWriter pw = rs.getWriter();
pw.println("Beer selection advice<br>");
String c = rq.getParameter("color");
pw.println("<br>got the beer"+c);
}
}

<html>
<h1 align="center">Beer selection</h1>
<form method="Get" action="SelectBeer.do">
Select beer charcteristics
<select name="color" size="1">
<option value="light" >light</option>
<option value="amber">amber</option>
<option value="brown">brown</option>
</select.
<br><br>
<center>
<input type="Submit">
</center>
</form>
</html>


Related Tutorials/Questions & Answers:
deployment of servlet - JSP-Servlet
deployment of servlet  i have problem deploying theservlet , im posting the code please help me servlet class import javax.servlet.*; import... Select beer charcteristics light amber brown servlet
Deployment of jsp-servlet in JBoss - JSP-Servlet
Deployment of jsp-servlet in JBoss  hello, I unzipped the JBoss4.0.0. Now, I have saved the web application named "abhi" in the deployment folder . like this E:\JBOSS\jboss-4.0.0\server\default\deploy\abhi After starting
Advertisements
web.xml deployment descriptor - JSP-Servlet
web.xml deployment descriptor  Pls guide about how to write...;); out.println("</html>"); }} <servlet> <servlet-name>HelloWorld</servlet-name> <servlet-class>HelloWorld</servlet
deployment in eclipse
deployment in eclipse  How to run the web project in eclipse in resin server without using GUI hard deployment
Deployment descriptor
Deployment descriptor  What is deployment descriptor ?   A deployment descriptor is an Extensible Markup Language (XML) text-based file with an .xml extension that describes a component?s deployment settings. A J2EE
deployment error
deployment error  when i deployed my .ear file into the jboss4.2.3 ga it shows this exception in server log any body please help me,thanks in advance error is : 012-08-22 15:19:41,068 DEBUG
Website deployment
Website deployment  Hi, I have created a website using servlet and jsp. I'm through with it now i want to deploy my website locally such that if anyone types the url of the project it can be viewed without installing netbeans
Website deployment
Website deployment  Hi, I have created a website using servlet and jsp. I'm through with it now i want to deploy my website locally such that if anyone types the url of the project it can be viewed without installing netbeans
JavaFX deployment in Jboss
JavaFX deployment in Jboss  Hi, How to deploy javafx application into JBoss
Deployment steps in weblogic 102 - Development process
Deployment steps in weblogic 102   Hi Friends, can u give me d deployment steps in weblogic server 10.2(both jsp and servlet ..... how to export war file?) ..Thank u in advance
Deployment of your example - Struts
Deployment of your example  In your Struts2 tutorial, can you show how you would war it up so it can be deployed into JBOss? There seems to be a lot of unnecessary files in it, or am I mistaken
WebServices deployment in Weblogic - WebSevices
WebServices deployment in Weblogic  Hi, I want to create a service using Axis2 and deploy the service in Weblogic, along with my application war file. What is the common practice? Thanks in Advance, VJ
Deployment of JSF - Framework
Deployment of JSF   Hello, I am getting the following error while deploying the JSF application in JBOSS 4.0.0, I have followed all the steps...-INF\lib\jsf-impl.jar(com/sun/faces/taglib/jsf_core/ViewTag.class) class file
Website deployment on LAN
Website deployment on LAN  I have created a dynamic website in netbeans. Now i have to host the website on LAN so that by typing the URL of the project the users are able to view the content from their end. I have no idea
Deployment of your example - Struts
Deployment of your example  In your Struts2 tutorial, can you show how you would war it up so it can be deployed into JBOss? There seems to be a lot of unnecessary files in it, or am I mistaken?  Hi friend, Please
Deployment Error - Struts
Deployment Error  When I try to deploy application ?struts-examples-1.3.8.war? file in Tomcat 5.5 Web Server it is working fine. Whereas when I deploy the same web application in Weblogic8.1 Application Server, I am getting
Deployment on apache tomcat 7.0.14.0
Deployment on apache tomcat 7.0.14.0  Hi guys, Sorry but im not speeking english well. During developement , I deploy my app(with the context path : /EasyOrdo.) directly on netbeans, who use this tomcat version, integrated
Deployment - Java Beginners
Deployment   hi all Here is some problem which is often occured when i deployed a J2EE web application.When i deployed my application then this message is shown. D:\WorkSpace\Struts\WebApplication1\nbproject\build-impl.xml
Deployment on apache tomcat 7.0.14.0
Deployment on apache tomcat 7.0.14.0  Hi guys, Sorry but im not speeking english well. During developement , I deploy my app(with the context path : /EasyOrdo.) directly on netbeans, who use this tomcat version, integrated
deployment error - XML
deployment error  hai, iam using sitemesh on spring framework, iam getting the following error after i deployed my war file on tomcat.I suspecting my web.xml. please help me to fix the problem. and can anyone help me to write
Deployment Descriptor
Deployment Descriptor       A deployment descriptor or DD in short is a configuration file... Edition, a deployment descriptor contains information about a web application
JAVA Web project deployment
JAVA Web project deployment  Hi friends, I have created a website using servlet and JSP with SQL server on the backend. Now I have to deploy the project so that I can open the project and someone can work on it without installing
Java Project Deployment
Java Project Deployment  Hi I have created a website using servlet and JSP. There are three type of users on the website namely administrator, student and teacher. Now I need to install this website on all the systems
What are the elements in the deployment descriptor(web.xml)?
What are the elements in the deployment descriptor(web.xml)?  What do the following elements in the deployment descriptor(web.xml)are: ??.. ?.. ??? ?
EJB deployment descriptor
EJB deployment descriptor       Deployment descriptor is the file which tells the EJB server that which classes make.... it also indicates the behavior of one EJB with other. The deployment descriptor
websphere deployment probllem - Java Beginners
websphere deployment probllem  How to deploy and run struts application using websphere application server v6.0 plz send the solution for this question
Weblogic Hot Deployment - Development process
Weblogic Hot Deployment  How to do auto-deployment on weblogic 9.2 ? Hi All, I am using Weblogic9.2 server. I am developing server side code.... So I wanted to set up hot deployment, which is called as auto-deployment
j2ee deployment error - Java Beginners
j2ee deployment error  hi all Here is some problem which is often occured when i deployed a J2EE web application.When i deployed my application...-impl.xml:550: Deployment error: Cannot perform required operation, since
Struts appliction deployment in weblogic8.1 - Struts
Struts appliction deployment in weblogic8.1  while deploying struts appliction in weblogic8.1 i get following messages & controlling is going action class printing request parameter in weblogic console but i am not getting
Specifying an Authentication Mechanism in the Deployment Descriptor
In this section, you will learn how to specify an authentication mechanism in the deployment descriptor
 

 

 

DMCA.com