Mar 31 2008

How to read a cookie value?

Tag: JavaYogesh @ 7:24 am

reading a cookie value is pretty straight forward.

cookies are received in the request, so just call cookie.getvalue() to get the value stored in the cookie.

Continue reading "How to read a cookie value?"


Mar 27 2008

How to send an email in java

Tag: JavaYogesh @ 12:44 pm

Use javax.mail.* to send emails.

the following method can be used to send an email .
this method sends email as plain text, to send a html mail replace "text/plain" with "text/html"(As described here this will not wrap the mail body, so you have to do that manually using html tags. will explain more on that some other time)

Continue reading "How to send an email in java"


Mar 27 2008

Print all request properties and parameters

Tag: JavaYogesh @ 12:06 pm

You can use this method to print the request attributes ,properties and parameters

Continue reading "Print all request properties and parameters"


Next Page »