aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Cookie problem" Watch "Cookie problem" New topic
Author

Cookie problem

Mohammad Akon
Greenhorn

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:
cookie.jsp



setcookie.jsp


showcookievalue.jsp


Ideas or suggestions are highly appreciated.

Thanks.

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

Joined: Jan 10, 2002
Posts: 60053
    
  65

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
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

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
Getting The Value From A Cookie To Use In An If Statement
"Type mismatch: cannot convert from Cookie to String"
Logout user by deleting cookie
problem with this cookie program, getting a blank output
SESSION TRACKING.