B Crosthwaite

Ranch Hand
+ Follow
since Oct 22, 2008
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 B Crosthwaite

haha lol thanks

Dont get me wrong, im not being really lazy. I was hoping that people that have done certain tutorials might give some feed back

-Ben
15 years ago
Hey Everyone,

Please can someone suggest a good online Java tutorial for begginers?

Thanks,
Ben
15 years ago
Hey,

Thanks for you replies. I read some post on the interweb and i modified my code a little bit and came up with this:



This does the job with both get and post from the HTML page.

I was just wondering if this was the best way of going about this certain task? or is there a more efficient way?

Thanks,
-Ben
15 years ago
Hi Guys,

Im am going over my old webdev tutorials and i have got stuck. Hopefully i might get some help here

this is the code:


What i am trying to do is override the doPost method with a doGet method. The code above will compile but i get the HTTP error 405.

Does anyone see where i am going wrong?

Thanks
-Ben
15 years ago
Hi Guys, thanks for your replys.

I fully intend on working through the Head First Servlets and JSP book, having spent �30 on it !

I have read that Core Servlets and JSP is a good book to work through. Anyone used it before?

-Ben
15 years ago
Hi Everyone,

I would consider myself a beginner/intermediate when it comes to servlets and JSP. I have recently rekindled my enjoyment of servlets and JSP. I have not really done any work in Servelts and JSP for about a year so I am a bit rusty

I bought "Head First Servlets and JSP" at the weekend but having read some reviews of it on the internet I am not convinced I made a wise decision

I was just wondering if anyone could suggest some good books to bring me up to speed.

Thanks.
-Ben
15 years ago
Hey Rienhard, Campbell and Vaibhav,

Thanks for all your replys.

Rienhard your steps worked for me, thank you.

-Ben
15 years ago
my classpath is set like this:
CLASSPATH /Library/Tomcat/Home/lib/servlet-api.jar

I am on Mac OS X (version 15.5.5)

Im sorry please can you explain what you mean by "replaced the Servlet class with a normal class" i don't fully understand.

again, thanks for you time. I really appreciate it

-Ben
15 years ago
I have checked and double checked

This is very disheartening

Have you managed to compile my code?

-Ben
15 years ago
Yes.

scr/com/example/model/BeerExpert.java



-Ben
15 years ago
Hey Reinhard,

Thanks for your reply, however i was presented with the same errors when i tried what you said.

Any other ideas?

-Ben
15 years ago
Thank you worked like a charm.

-Ben
15 years ago
Hi thanks for your reply.

My Directory is set up like this (sorry if its a bit confusing this was the best way i could lay it out)

MyProject
|
beerV1
|
classes------|-----src
|-------------------|
com----------------com
|-------------------|
example-----------example
/-----\-------------/----\
web-model-------web-model

The way I am compiling is this:

cd ~/MyProject/beerV1
javac -d classes src/com/example/web/BeerSelect.java

So i have my .java files in the src part of the directory and when i compile them the .class file gets sent to the classes part of the directory

-Ben
[ November 15, 2008: Message edited by: B Crosthwaite ]
15 years ago
My package directory is:

com
|
example
|
model

aaaahhhh !

Why is this not working? Pleaase Help me

Thanks,
-Ben
15 years ago
Hi Guys,

I am following a tutorial from the Head First servlets & JSPs book (not very well it would appear ).

I am trying to compile this code:


When i do the compile i get these errors:


This is really frustrating as i am following everything word for word in the book.

Does anyone see where i am going wrong?
If i have not given enough info please tell me what you need to help me sort this problem out

Your help would be greatly appreciated.
Thanks,
-Ben
15 years ago