Blog

Adding new cell type in POI utility

Recently, we have given ability in our one of the project to export data in excel sheet. For exporting data into excel we used POI Utility from Ben Nadel. In this package there are so many excel type conversion such as date, numeric, formula.. In exporting data into excel we have given formula to calculate percentage. For example (A3*D3)/100. All things work fine. Client needs to enter only value for calculating percentage amount.(eg. 2.5, 0.75).

Read More
By Bharat Patel
Comments(0)
Tags: coldfusion, poi utility, percentage
Day 2: Avoid Cross-site scripting (XSS) using ColdFusion 10 - Part 1

In ColdFusion 10 added bunch of functions to avoid XSS attack, XSS attack (as explained above by Wikipedia) is some scripting code/iFrame in dynamic content which will render in webpage and significantly create security risk. Most of us already using HTMLEditFormat to encode user input (like comment in blog post) to avoid unwanted HTML rendering. But HTMLEditFormat is not capable to avoid all kind of XSS attack since this function encode only <, >, & and ". This function will not help if you to avoid XSS in tag attribute, CSS and JavaScript. ColdFusion 10 introduce endcodeForHTML, encodeForHTMLAttribute, encodeForJavaScript, endCodeForURL and canonicalize to fight with XSS attach. In this post I will try to cover some of them.

Read More
By Pritesh
Comments(0)
Tags: ColdFusion, ColdFusion10, security