File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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...
I agree. Here's the link:
subject: 404 Error
It's not a secret anymore!