This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes 404 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "404 Error" Watch "404 Error" New topic

404 Error

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
I tried to run a simple application, which adds cookies.

Please find the below code.


and i have result cookies.jsp as well....

I have put my "Serv_cookie.class" file in Cookies/WEB-INF/classes directory.

Request_params_cookies.jsp is inside Cookies webapps

When i click submit on Request_params_cookies.jsp, i get below error....

HTTP Status 404 - /GG


type Status report

message /GG

description The requested
resource (/GG) is not available.

Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
tanveer chowdry

Joined: Jul 17, 2007
Posts: 21
The problem is in the JSP.

should be

No / should be present.

BTW have you also defined servlet in Web.xml ?

Regards,<br />tanveer<br /> <br />SCJP 1.4 (86%)<br />SCWCD 1.5 (98%)
Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
Thanks tanveer.....
Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299

now iam able to retrieve the cookie value. How can i populate my text box the next time the page loads?
i want to know what do i need to write in value...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: 404 Error
Similar Threads
Display value of cookie into text box
error - HTTP Status 404 - /EmailList/
"Type mismatch: cannot convert from Cookie to String"
regarding servlet mapping
Modified Code Barn Simple MVC not works