Sanjana Rao

Greenhorn
+ Follow
since Mar 24, 2006
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 Sanjana Rao

Hi,
It's working now,
thanks a lot Narendra Dhande.I changed "from"->"form".
thanks Vinod and group.

Sanjana.
Hi,
Tomcat is working fine,I could able to open "http://localhost:8080/Beer-v1/form.html".
The following is the web.xml kept in deployment "..\Tomcat 5.0\webapps\Beer-v1\WEB-INF\" directory;
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

<servlet>
<servlet-name>Ch3 Beer</servlet-name>
<servlet-class>com.example.web.BeerSelect</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Ch3 Beer</servlet-name>
<url-pattern>/SelectBeer.do</url-pattern>
</servlet-mapping>
</web-app>

Just to inform, also BeerSelect.java is same as HFSJ'S.Built that and kept in deployment directory as mentioned in HFSJ.

Thanks,
Sanjana.
Hi,
Chandra Sagi,
I could able to open the default page http://localhost:8080.Its not a blank page or a Page Not Found error, the page remain unghanged.
Marc Peabody,
Even I'm wondering how I'm getting "SubmitQuery" button; below is the code I wrote in "form.html";
<html>
<body>
<h1 align="center">Beer Selection Page</h1>
<from method="POST"
action="SelectBeer.do">

Select beer Characteristics<p>
Color:
<select name="color" size="1">
<option>ligt
<option>Amber
<option>Brown
<option>Dark
</select>
<br><br>
<center>
<input type="SUBMIT">
</center>
</form>
</body>
</html>


Ravinder Uppala,

I .... Please be make usre that it is exactly as it is in the book. Sometimes if you miss the ending text for the xml in the deployment ....



I copied exactly from the book.What is "ending text " you mentioned, can you please explain in detail.

Thanks,
Sanjana
Hi,
I'm preparing for scwcd, I'm new to servelets/jsp's. I'm trying to do the mini mvc project given in 3rd chapter of HFSJ book. I followed exactly what is mentioned in the book. Everything working fine but, I'm not getting any response after clicking "SubmitQuery" button in the "http://localhost:8080/Beer-v1/form.html".I wrote same code in BeerSelect.java as mentioned in the book. Anything else to be done? Please clarify.

Thanks,
Sanjana.