wood burning stoves 2.0*
The moose likes JSP and the fly likes Cookie problem 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 » Java » JSP
Bookmark "Cookie problem" Watch "Cookie problem" New topic

Cookie problem

Mohammad Akon

Joined: Jul 17, 2007
Posts: 19
Hi all,

I am trying to get the cookie values to display on a page of my web app. It works fine until I try to get any text having a '@' character in it (e.g. 'abc@example.com' or 'a@a'). In such case it is printing the first few characters before the '@' symbol. Does anyone have any explanation/suggestions?

I used similar code like this:



Ideas or suggestions are highly appreciated.


[ April 10, 2008: Message edited by: Mohammad Akon ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

Not a Struts question. This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

This isn't related to your issue, but why are you doing things like:

instead of the much simpler:

I agree. Here's the link: http://aspose.com/file-tools
subject: Cookie problem
Similar Threads
Logout user by deleting cookie
problem with this cookie program, getting a blank output
Getting The Value From A Cookie To Use In An If Statement
"Type mismatch: cannot convert from Cookie to String"