File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Cookie problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56153
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56153
    
  13

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cookie problem
 
Similar Threads
problem with this cookie program, getting a blank output
SESSION TRACKING.
"Type mismatch: cannot convert from Cookie to String"
Logout user by deleting cookie
Getting The Value From A Cookie To Use In An If Statement