Tag Archives : code

Killing Oracle Sessions

Killing Oracle Sessions

Identify the Session to be Killed Killing sessions can be very destructive if you kill the wrong session, so be very careful when identifying the session to be killed. If you kill a session belonging to a background process you will cause an instance crash. Identify the offending session using the V$SESSION...
Filed in: Database
0
Tomcat POST Size Limit

Tomcat POST Size Limit

Apache Tomcat has a limit on the size of request that can be made using the POST HTTP method. Some time we need to submit data more than the limit. This article describes how this limit can be removed, enabling very large amount of data to be sent on server. Remove POST size limit If we send large amount...
Filed in: Java
0
Print the Stack Trace of the Exception to a String

Print the Stack Trace of the Exception to a String

When an exception occurs, this code snippet will print the stack trace of the exception to a string. This way, the exception stack trace at runtime can be recorded in log file. public static String getStackTrace(Throwable t) { StringWriter sw = new StringWriter(); PrintWriter pw...
Filed in: Java
0
Special Characters

Special Characters

To make special characters and accented letters show up on your pages, use a special set of codes called character entities, which you insert into your HTML code and which your browser will display as the corresponding symbols or characters you want. The most common character entities have been collected...
Filed in: HTML, Java, Javascript
3
Remove special characters from a string using JavaScript

Remove special characters from a string using JavaScript

Hi Guys, I would like to share a JavaScript snippet code which will remove special characters (like !, >, ?, ., # etc.,) from a string. Well, recently I was working on a project where in which I want to remove some special characters from a given string or user entered string. For that I have written...
Filed in: Javascript
1
© 2010 Developer Articles. All rights reserved.
Powered by: Aaban Technologies