• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 Error

 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to run a simple application, which adds cookies.

Please find the below code.

Request_params_cookies.jsp



Serv_cookie.java





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.
 
tanveer chowdry
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is in the JSP.

should be

No / should be present.

BTW have you also defined servlet in Web.xml ?
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks tanveer.....
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic