Posts Under ''

How to Remove jsessionid from URL

A "JSESSIONID" is the unique id of the http session – see the javadoc here. When you start a HTTP session, the session ID is appended to the URL and a cookie is set. If the browser has cookies enabled, the JSESSIONID is not used on subsequent requests. Here is a urlrewrite rule to get […]

Read more »


pop3: refused connect from ipadress

I have already posted sshd problem. This problem is also related to this only. I googled lot about this problem but no solution. So i tried adding pop3: ipaddress: ALLOW in hosts.allow. Bingo it worked.

Read more »


sshd: refused connect from ::ffff

Hello friends, I faced this problem before 2 days. I did some research and found on google that, to solve this problem you have to see hosts.deny and hosts.allow files under /etc/ directory. So you have to add your ISP or Local ip address in hosts.allow files as sshd sshd1 sshd2 : ipaddress : ALLOW […]

Read more »


Replace Single Quote in Java using str.replaceAll()

Replace Single Quote in Java using str.replaceAll() To replace single quote in java you have to escape four times the single quote in replaceall string method. String input = "Replace Single Quote's in Java"; String output = input.replaceAll(" ' ", "\\\\' "); System.out.println(output);

Read more »