• Dipak
  • NEWBIE
  • 70 Points
  • Member since 2011

  • Chatter
    Feed
  • 2
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 36
    Questions
  • 41
    Replies

Hi Guys,

 

I've a set with single element.

I need to get the value in the set to a string.

public Set<String> closeMonthDateSet;

 

The closeMonthDateSet set will have a single value which i need to put into a string.

 

Can anyone help me on this?

  • April 23, 2013
  • Like
  • 0

How to avoid Cross-site Scripting (XSS) using 

<apex:outputtext value="{!gadgetHTMLContent}" escape="false"/>

.. In the above outputtext gadgetHtmlContent is always a HTML CONTENT for e.g <div id="Test"></div>. Like this. For displaying html content we have to use escape="false". But whenever we are trying to write escape="false", an error is coming about  Cross-site Scripting (XSS) attacks. How can we avoid this attack by using escape="false".

                                     Please reply anyone who has any idea about this as soon as possible. It is very urgent.

                                                                                                                                                                                                   Thanks Souvik.

Hi All,

 

I want to notify users  through chatter Stream  when a new record is created.
Say , when a new Lead record will created , a post at chatter will be notified to all users.

How can I enable this fetaure.?


  • August 30, 2013
  • Like
  • 0

Hi All,

I need to upload a doc /attachment by custom VF and Apex. I could able to that.
But now I need to check the choosen file is a corrupted file or not / or it might be affected by virus or not.
some  security checking like above.
I could not able to find out any such method for security checking of a File.

If any body knows , please help me immidiately

 

 

Thanks is advance

  • June 06, 2013
  • Like
  • 0

Hi All,

I have created a managed package, uplaod was successful. But when I am trying to install the package with the generated installation link, the installation is failured , & having following contents with failure status mail.

Your request to install package "Potential Finder! Dec 2012" was unsuccessful. None of the data or setup information in your salesforce.com organization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: Salesforce (00D90000000b3fU)
User: Souvik Dutta (00590000000HVaL)
Package: Potential Finder! (04t90000000MAzm)
Error Number: 1944227372-11532 (-247512113)

Package Install Failed

An error has occurred during a package install operation.

Thank You,
salesforce.com

 

Can anybody suggest , what will be cause of installation failure..
Or how can be solved.

Awaiting for your imidiate help.
thanks in Advance

  • December 01, 2012
  • Like
  • 0

Hi,

I am facing a problem while trying to run a VF page which has some input fields and submit will insert data in an object.
While clicking submit, it is showing

Insufficient previlege Error.

But I have checked VF page, Class, Object all have field level security arrangment proper.
Also Profile level setting is ok.
So what can be other reason for it.

Please help. Thanks in advance.

  • November 21, 2012
  • Like
  • 0

Hi,

 =================================================== 
<form action="/SaveObjectInformation" method="GET">
<input type=hidden name="oid" value="00D90000000atAnEAI"/>
<input type=hidden name="UniqueNo" id="UniqueNo" value="1"/>
<input type=hidden name="retURL" id="retURL" value="http://"/>
 
<input id="firstname" maxlength="40" name="firstname" size="20" type="text" />
<input id="email" maxlength="40" name="email" size="20" type="text" />
<input id="company" maxlength="40" name="company" size="20" type="text" />
<input id="lastname" maxlength="40" name="lastname" size="20" type="text" />
<input type="submit" name="submit"></form>      

==============================================================
This is HTML code of a form page. At submit button I need to save record at an Object.

Form action containes OurOwnVF page ,thus calls own Apex Controller.
Something same like WebToLead thing we are trying.


Now if form action method =GET, then easily I can get param name and param value from URL after clicked submit .
After click it goes to SaveObjectInformation page  with parameters and at Apex class of that page get URL param value by System.currentPagereference .
================
String uniqueParamValue = System.currentPageReference().getParameters().get('UniqueNo');
=======================
URL param names are input fields name and value are respective to them.
So then insert at object.



But problem is that for method=POST  System.currentPageReference().getParameters().get('UniqueNo'); returns NULL

How can get URL param values at Apex Controller during POST method
?



Please help .I am stuck in this problem.
Thanks in advance

  • September 13, 2012
  • Like
  • 0

Hi All,

I have wriiten code, which use Dynamic SOQL. & also used "String.escapeSingleQuotes(value1)".But still it is showing SOQL injection Critical Error on http://security.force.com/security/tools/forcecom/scanner

Can any one check my application, UserId=    ishibe-cms@salesforce.com

Look at class cookieentryforwidgetinpagecontroller.cls for SOQL injection

Its urgent, please help me

  • July 30, 2012
  • Like
  • 0

Hi All

 

I have made a custom VF page to upload document. But when I tried to upload a  file of 1 MB or more , error shows to say
"Maximum view state size limit (135KB) exceeded. Actual view state size  for this page was 156.641KB".

 

I got some hints from forum, It didn't work for me

forum Link= http://boards.developerforce.com/t5/Visualforce-Development/Error-Maximum-view-state-size-limit-128K-exceeded-uh-oh/td-p/87434

 

I inspected the ViewStateSize on DevelopementMode's ViewState Tab

It shows more viewstate for "internal" node 

 

Below I am sending  my VF & Apex Code

 

VF Code:

-----------

<apex:page showHeader="false" standardController="Document" extensions="DocumentUploadController" >


<apex:messages />

<apex:outputPanel >

<apex:form >
<apex:pageBlock title="Doc Uploader" >
<table>
<tr>

<td>
<span>Select Folder</span>
</td>
<td>
<apex:selectList value="{!folderId}" size="1" style="width:200px;">
<apex:selectoptions value="{!folderList}"/>
</apex:selectList>
</td>

</tr>

<tr>

<td>
<span>Doc Title</span>
</td>
<td align="">
<apex:inputField value="{!Document.Name}" label="" style="width:400px;"/>

</td>

</tr>

<tr>

<td>
<span>Browse</span>
</td>
<td align="">
<apex:inputFile value="{!Document.body}" contentType="{!Document.ContentType}"/>

</td>

</tr>

</table>

</apex:pageBlock>
<div style="text-align: center">
<apex:commandButton value="Upload" action="{!save}" status="mystatus"/>
<apex:commandButton value="Close" onclick="window.close();" immediate="true"/>
<apex:actionStatus id="mystatus">
<apex:facet name="start">
<apex:outputPanel >Uploading.....
<apex:image value="/img/loading32.gif" style="height: 15px;"/>
</apex:outputPanel>
</apex:facet>
</apex:actionStatus>
</div>
</apex:form>
</apex:outputPanel>

<apex:outputPanel rendered="{!uploadFlg == true}">
<div style="text-align: center">
Uploaded Successfully<br />
<a href="{!DownloadLink}">Download Here</a>
Link : {!DownloadLink}
</div>
</apex:outputPanel>
</apex:page>

 

 

APEX Code:

-----------------

 

/**
* Apex Controller for Document Uploading for DB Version
**/

public class DocumentUploadController {

public ID folderId {get;set;}
public List<Selectoption> folderList {get;set;}
private ApexPages.StandardController ctlr;
public Boolean uploadFlg {get;set;}
public String targetId {get;set;}

public DocumentUploadController(ApexPages.StandardController controller){

this.ctlr = controller;
uploadFlg = false;
List<Folder> folders = [select Type, Name, Id, DeveloperName from Folder where Name != '' and AccessType = 'Public'];
folderList = new List<Selectoption>();

//Selecting folder for picklist in VF page
for(Folder folder:folders) {
if(folder.Name == null) continue;
SelectOption so = new SelectOption(folder.Id, folder.Name);
folderList.add(so);
}
System.debug('=======Folder ID to upload====='+System.currentPageReference().getParameters().get('fldrId'));

// setting current folder as default
if(System.currentPageReference().getParameters().get('fldrId') != NULL){

folderId = System.currentPageReference().getParameters().get('fldrId');
}

// setting 1st folder as default
else if(folderList.size() > 0) {
folderId = folderList[0].getValue();
}
}
/*****Method to handle Save functionality*******/
public PageReference Save(){

transient Document d = (Document) ctlr.getRecord();
d.FolderId = folderId;
d.IsPublic = true;
ctlr.save();
uploadFlg = true;
targetId = ctlr.getId();
d=NULL;
ctlr = NULL;
return null;
}

public String getDownloadLink() {

String url = '/servlet/servlet.FileDownload?file='+targetId;
return url;
}


}

 

Please help me..

  • July 05, 2012
  • Like
  • 0

Hi,

I need to move data from one salesforce account to another. I know , it is possible by DataLoader. But I want handle it by Apex / VF with our own logic. Can anybody suggest me , how is it possible through Apex

Say there is 3 records in a Custom Object in one account. At the Record Detail window, after clicking a button this record will move to another salesforce account.

 

Here account doesn't mean the Account Object present in salesforce. acccount means two different organisation

Please help me. This is a immidiate requirement

 

Thanks 

  • July 04, 2012
  • Like
  • 0

Hi All,

 

Now i am using "ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');" to   get the Global Ip. It is showing correct IP in my developer account....But when i am using the same statement in a Enterprise account, it is showing different result...

 

 

So please suggest me , if there is any other way to  get the correct Global IP....

 

 

Thanks 

 

Dipak


  • February 03, 2012
  • Like
  • 0

Hi,

 

I have a custom object having 3 fields TimeIn__c, Timeout__c, & Duration__c & TimeIn__c & TimeOut__c are the Text fields.

I have captured the Time In & Time out , Then format it to HH:MM:SS AM/PM, then stored them in text format in respective field.

 

But Now I need to calculate the duartion(i.e The difference between TimeIn & Time Out). I am unable to findout any ,method for getting the defference between two time..

 

If any body have the solutions, Please let me know..

 

I need help

  • January 23, 2012
  • Like
  • 0

Hi,

 

I want to fetch the list of label names for all the fields of an Object....I got some code to get field labels of an Object 

 

i.e. <apex:column title=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” headerValue=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” width=”50px”>

 

But I want to get the list of all field labels by Apex..

I got the API name of all fields like this 

 

 String type='Account';

Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
Schema.SObjectType leadSchema = schemaMap.get(type);
Map<String, Schema.SObjectField> fieldMap = leadSchema.getDescribe().fields.getMap();


for (String fieldName: fieldMap.keySet()) {

System.debug('##Field API Name='+fieldName);// list of all field API name
}

 

 

 

But I need to get the label name..

 

Please help

  • January 20, 2012
  • Like
  • 1

I have tried a lot to fix out the “/cms/ ” issue,

 

For “/cms/” inside the code, we have sent PageReference as “/cms/Page-Category/PageName/”.

& then by the help of Salesforce's Site URL Rewritting feature this above page-Reference converted to internal URL like “/PreviewPageContainer?Id=PageID”

 

For this feature our previous-code look like this, Now just look in to the code,( specially with  highlighted lines)

 

 

global class SiteURLRewriter implements Site.UrlRewriter {

 

String DIRECTORY = '/cms/';

 

String VISUALFORCE_PAGE = '/PreviewPageContainer?Id=';

 

// The first global method for mapping external URL to an internal one

 

global PageReference mapRequestUrl(PageReference myFriendlyUrl){

 

 

String url = myFriendlyUrl.getUrl();

 

if(url.startswith(DIRECTORY )){

 

String name;

Integer indx=url.lastIndexOf('/');

 

name=url.substring(0,url.length());

 

if(indx!=-1)

name=url.substring(indx+1,url.length());

 

Integer loc=name.indexOf('?');

String paramStr='';

 

if(loc!=-1){

name=name.substring(0,loc);

paramStr=url.substring(loc+1,url.length());

Page__c site_page = [select id,name from Page__c where name =:name LIMIT1];

return new PageReference(VISUALFORCE_PAGE +site_page.id+'&'+paramStr);

}

 

else{

 

Page__c site_page = [select id,name from Page__c where name =:name LIMIT 1];

return new PageReference(VISUALFORCE_PAGE + site_page.id);

}

 

}

 

return null;

 

}

 

// The second global method for mapping internal Ids to URLs

 

global List<PageReference> generateUrlFor(List<PageReference> mySalesforceUrls){

 

return null;

 

}

 

}

 

 

Now when we tried to remove the “/cms/” prefix, then we sent PageReference as “PageCategory/PageName/” & then by the help of Salesforce's Site URL Rewritting feature this above page-Reference converted to internal URL like “/PreviewPageContainer?Id=PageID”

 

Then also we have made some changes in SiteURLRewriter class like this,

 

Option-1 (Not Working)

 

1- remove String DIRECTORY = '/cms/';

2- Changed the condition if(url.startswith(DIRECTORY )) to if(url.length())>0

 

After this it is not working,

 

Option-2 (Not Working)

 

1- remain the String DIRECTORY = '/cms/'; code as it is

 

2- changed the condition to if(url.startswith('/'))

 

After this it is not working

 

Option-3 (Not Working)

 

1- remain the String DIRECTORY = '/cms/'; code as it is

 

2-changed the condition toif(url.length())>0

 

After this it is not working

 

 

 

 

Option-4 (Not Working)

 

1- remain the String DIRECTORY = '/sites/';

 

2-changed the condition toif(url.length())>0

 

After this it is not working

 

Option-5 ( Working)

 

1- remain the String DIRECTORY = '/sites/';

 

2-changed the condition toif(url.startswith(DIRECTORY ))

 

After this it is working

 

 

From these above test case,

 

I have noticed that if we change the condition “if(url.startswith(DIRECTORY ))” then it is not working and if we have placed any text in place of '/cms/' like /site/, and with same condition,then only it is working

 

 

Thanks

 

 

Dipak

  • December 08, 2011
  • Like
  • 0

Hi ,

 

can any body inform me, the how to know the size of each record in a custom object

  • November 18, 2011
  • Like
  • 0

Hi,

 

I want to know the way to get the Company Name from its Global Ip. I can able to fetch the global IP. But i dont know the way to findout the way to get the organisation name

  • November 18, 2011
  • Like
  • 0

Actually, I am developing a Salesforce Sites application that has a requirement for creating a cookie that will persist if the Browser is closed and reopened. Using the APEX Cookies class it appears that only session cookies are created.

but when I am constructing a cookie I can enter  an integer value that represents the seconds that this cookie will persist within the browser.

 

for example 

Cookie commonFields = new Cookie('commonFields',Varible_Value,null,10000,false) 

 

But this cookie isn't persist after closing the browser. I need to persist this cookie after closing the browser.(here in the cookie value , i have set the varible value)

 

So how can i create persistent cookie

 

 

Thanks

  • November 10, 2011
  • Like
  • 0

Hi,

 I want to know that how to store variables in Session and how to access that Session Variable in VF Page & in Contoller?

 

 I have read a discussion here , & here it is mentioned that there is no concept of Session Class in Salesforce & one suggestion is that--

 

1. You can create a session if all pages involved use precisely the same controller and controller extensions. A tutorial can be found here

 

 

 

I have the similar requirement as like  Step 1(i.e all pages use the same controller )..But the linked provided at step1 open the below link

 

http://wiki.developerforce.com/page/NewOpportunityController.apex

 

Unfortunately it show the message that "The cookbook has moved -"

 

 

Please help me



  • November 09, 2011
  • Like
  • 0

Hi all,

 

I want to detect the OS of the system used by a visitors, Is it possible to detect the OS in salesforce.?

 

 

kindly reply ASAP

  • November 07, 2011
  • Like
  • 0

Hi,

 i have VFpage in which 6 <apex:inputfield> is there. These fields are pointing to a lookup custom field in a object.

there is a save button . My requirement is to save all 6 records on a single click of the save button.

But when i am click on any lookup icon , always the first lookup text box value is papulated.

 

I am unable to findout the problem,

 

Need help....!

  • November 01, 2011
  • Like
  • 0

Hi all,

 

I want to know , how to track session in salesforce VF page. I have a site, i want to know the session in time and out time. within that session a visitor may visit more than one page . But Only i want to know the inTime(when visitor open the site for first time) and outTime(when visitor close the browser or browser's Tab). That means i want to track how long a visitor visits to my site .

 

 

Is there any way to track the session..

 

Please help me ASAP

  • October 28, 2011
  • Like
  • 0

Hi all,

 

I want to track each user of my site. Also i want to save each user with a unique number in a object, and also want to track each visitor's session like entry time, left time or duration of one page access.

 

How can i achieve that one..?

 

Needs immidiate help

  • October 27, 2011
  • Like
  • 0

Hi,

 

I want to fetch the list of label names for all the fields of an Object....I got some code to get field labels of an Object 

 

i.e. <apex:column title=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” headerValue=”{!$ObjectType.OpportunityLineItem.fields.Quantity.label}” width=”50px”>

 

But I want to get the list of all field labels by Apex..

I got the API name of all fields like this 

 

 String type='Account';

Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe();
Schema.SObjectType leadSchema = schemaMap.get(type);
Map<String, Schema.SObjectField> fieldMap = leadSchema.getDescribe().fields.getMap();


for (String fieldName: fieldMap.keySet()) {

System.debug('##Field API Name='+fieldName);// list of all field API name
}

 

 

 

But I need to get the label name..

 

Please help

  • January 20, 2012
  • Like
  • 1

Hi All,

 

Is there any way to test blank values for Integer fileds, for Strings fields

if( Str == '') or Isblank(Str) ...

Any help must be highly appreciated.

Thanks in advance !



Hi,

 

Can I know how to refresh the entire Visual force or Part of the page when a component is modified(i.e. when a command link action is performed by the component).

 

Thanks & Regards

Hi,

Need to assign contacts of one account to another account in  VF.

In above requriment i can able to display list contacts for assicoated account in VF page but unable to add selected contact of one account ot another account.

Any help is highly appricated.

 

Regards,

Vishnu.

Hi,

 

I'm trying to evaluate a address to avoid duplicate information, in this case I developed a apex class that consult a custom dictionary, the idea is take exact words from the Street and replace for a new one for example:

 

st - Street
st. - Street

ave. - Avenue
av - Avenue

 

Now I'm using the CONTAINS method and REPLACE, but just I need is the exact word to replace it. I hope anybody can help me with some ideas.

 

Thanks

Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger ItemizationAfterTrigger caused an unexpected exception, contact your administrator: ItemizationAfterTrigger: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with id a0vS0000002vAnqIAE; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You do not have sufficient Amount for reimbursement.: []: Class.ItemizationClass.UpdateApprovedandPending: line 41, column 1


I am getting the above the error.I have trigger on the object to update the value of the status to approved but if the amount is negative i have a negative so any suggestions on how to handle this would appreciated.

I'm new to development and I've written a trigger to update the Account with a field when a) the field is blank and b) a Contact is created or updated and contains a value in a corresponding field.  The idea being to maintain the data in two places.  However, I'm getting an exception which references "kugadd" which I assume is from the Kugamon package we have installed.  Can anyone help?

 

Here is my trigger:

 

trigger OnAccountContactCategory on Contact (before insert, before update) {

    List<Id> AccountsToUpdate = new List<Id>{}; 
    // Find account to update
    for(Contact c: Trigger.new){
        if (c.Categorycontact__c != Null && c.AccountId != Null)  {
              AccountsToUpdate.add(c.AccountId);
        }
        // Pull field data from account
      List<Account> accts = new List<Account>([SELECT Id, Category__c FROM Account WHERE Id IN :AccountsToUpdate]);
        // Update account    
      for(Account a: accts) {
         if (a.Category__c == Null) {
                a.Category__c = c.Categorycontact__c;
              update a;
         }
      }
   }
}

 

Here is the emailed exception (I removed the IDs themselves):

 

 

OnAccountContactCategory: execution of BeforeUpdate

caused by: System.DmlException: Update failed. First exception on row 0 with id [ACCOUNT ID]; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, kugadd.AccountAfterInsertAfterUpdate: execution of AfterUpdate

caused by: System.DmlException: Update failed. First exception on row 0 with id [CONTACT ID]; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = [CONTACT ID]) is currently in trigger OnAccountContactCategory, therefore it cannot recursively update itself: []

(kugadd)
: []

Trigger.OnAccountContactCategory: line 15, column 1

 

Thoughts?  Thanks!

Hi Guys,

 

I've a set with single element.

I need to get the value in the set to a string.

public Set<String> closeMonthDateSet;

 

The closeMonthDateSet set will have a single value which i need to put into a string.

 

Can anyone help me on this?

  • April 23, 2013
  • Like
  • 0

Hi all,

 

I'm migrating data using salesforce to salesforce. It is working fine. But while trying to insert audit field values from old organisation to new organisation it is not giving the option to map the audit fields. I have already enabled Audit field value insert  once in new organisation from salesforce.com but still CreatedBy, CreatedDate etc audit fields are not displaying in the mapping section to pass the old audit fields to new organisation.

 

If anyone has any solution to this kindly reply back as soon as possible.

 

Thanks in advance

I am  migrating data from one salesforce org to another. I want to retain the value of the audit fileds i.e. created by, last modified by, created date and last modified date. I have raised a case with salesfoce.com support and they have enabled this but still I am not able to send the values of the audit fields. If anyone have any solutions for this please share.

 

thanks

tanmayee

Hi All,

I have created a managed package, uplaod was successful. But when I am trying to install the package with the generated installation link, the installation is failured , & having following contents with failure status mail.

Your request to install package "Potential Finder! Dec 2012" was unsuccessful. None of the data or setup information in your salesforce.com organization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: Salesforce (00D90000000b3fU)
User: Souvik Dutta (00590000000HVaL)
Package: Potential Finder! (04t90000000MAzm)
Error Number: 1944227372-11532 (-247512113)

Package Install Failed

An error has occurred during a package install operation.

Thank You,
salesforce.com

 

Can anybody suggest , what will be cause of installation failure..
Or how can be solved.

Awaiting for your imidiate help.
thanks in Advance

  • December 01, 2012
  • Like
  • 0

Hi,

I am facing a problem while trying to run a VF page which has some input fields and submit will insert data in an object.
While clicking submit, it is showing

Insufficient previlege Error.

But I have checked VF page, Class, Object all have field level security arrangment proper.
Also Profile level setting is ok.
So what can be other reason for it.

Please help. Thanks in advance.

  • November 21, 2012
  • Like
  • 0

Hi,

 =================================================== 
<form action="/SaveObjectInformation" method="GET">
<input type=hidden name="oid" value="00D90000000atAnEAI"/>
<input type=hidden name="UniqueNo" id="UniqueNo" value="1"/>
<input type=hidden name="retURL" id="retURL" value="http://"/>
 
<input id="firstname" maxlength="40" name="firstname" size="20" type="text" />
<input id="email" maxlength="40" name="email" size="20" type="text" />
<input id="company" maxlength="40" name="company" size="20" type="text" />
<input id="lastname" maxlength="40" name="lastname" size="20" type="text" />
<input type="submit" name="submit"></form>      

==============================================================
This is HTML code of a form page. At submit button I need to save record at an Object.

Form action containes OurOwnVF page ,thus calls own Apex Controller.
Something same like WebToLead thing we are trying.


Now if form action method =GET, then easily I can get param name and param value from URL after clicked submit .
After click it goes to SaveObjectInformation page  with parameters and at Apex class of that page get URL param value by System.currentPagereference .
================
String uniqueParamValue = System.currentPageReference().getParameters().get('UniqueNo');
=======================
URL param names are input fields name and value are respective to them.
So then insert at object.



But problem is that for method=POST  System.currentPageReference().getParameters().get('UniqueNo'); returns NULL

How can get URL param values at Apex Controller during POST method
?



Please help .I am stuck in this problem.
Thanks in advance

  • September 13, 2012
  • Like
  • 0

How to avoid Cross-site Scripting (XSS) using 

<apex:outputtext value="{!gadgetHTMLContent}" escape="false"/>

.. In the above outputtext gadgetHtmlContent is always a HTML CONTENT for e.g <div id="Test"></div>. Like this. For displaying html content we have to use escape="false". But whenever we are trying to write escape="false", an error is coming about  Cross-site Scripting (XSS) attacks. How can we avoid this attack by using escape="false".

                                     Please reply anyone who has any idea about this as soon as possible. It is very urgent.

                                                                                                                                                                                                   Thanks Souvik.