Stefan Wrobel

Greenhorn
+ Follow
since Apr 02, 2010
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 Stefan Wrobel

Hey Guys,

i'm looking forward to take the Upgrade Exam for the OCP 7 (from SCJP6).

Does anyone of you already took the exam and would like to sell his copy of the EPractize Exam Simulator to me?

Greetz,
Stefan
Thanks, it works now, after moving the Beer-v1 folder out of the scwd-folder and - correcting the mistake on line 10 in my web.xml.
13 years ago
Hi all,

im reading the Head First Servlets & JSP book and I have problems with the Beer-App in Chapter 3.

First, I followed the instructions until page 77. When I tried to open
http://localhost:8080/Beer-v1/form.html
I got an error:


After I created an new directory in the webapps-directory and moved the Beer-v1 directory into it, the form.html worked (now using http://localhost:8080/scwcd/Beer-v1/form.html).

But now (being at the bottom of page 81), if I click on the submit-button, I get:


I already read some threads in this forum about the same example, but I actually couldn't find any solution that worked for me.

I have created the following files/dirs:
/var/lib/tomcat6/webapps/scwcd/Beer-v1/form.html
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/web.xml
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/lib/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/classes/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/classes/com/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/classes/com/example/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/classes/com/example/web/
/var/lib/tomcat6/webapps/scwcd/Beer-v1/WEB-INF/classes/com/example/web/BeerSelect.class

form.html:


web.xml:



BeerSelect.java (in my developement directory!):


I would be really glad I someone could help me

13 years ago