Shreyash Thakre

Greenhorn
+ Follow
since Oct 06, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shreyash Thakre



I am having the following code in my js file for innerHtml(for dynamically adding rows on jsp page)...but it is not working in Mozilla, it works fine IE.

I faced the same problem everywhere were I used innerHtml, so can anyone please tell me the other way out for this, so that it works fine in Mozilla..

var len = datamain3.rows.length;
var rowcnt = datamain3.insertRow(len);
.
.
.
var c0 = rowcnt.insertCell();
.
.


Thanks & Regards
Shreyash Thakre
suppose say if you are getting data which contains special characters, and not displaying that on jsp page.
so you can use the replaceAll method to display the special characters in proper format.

I faced the same problem, but using this it was solved.

String strData = "";
if(Obj.getBlobData() != null)
{
strData = Obj.getBlobData();
strData = strData.replaceAll("%0D%0A","\n");
strData = strData.replaceAll("%20"," ");
strData = strData.replaceAll("%3E",">");
strData = strData.replaceAll("%3C","<");
strData = strData.replaceAll("%23","#");
strData = strData.replaceAll("%25","%");
strData = strData.replaceAll("%7B","{");
strData = strData.replaceAll("%7D","}");
strData = strData.replaceAll("%7C","|");
strData = strData.replaceAll("%5C","\\\\");
.
.
.
.
strData = strData.replaceAll("%21","!");
strData = strData.replaceAll("%22","\"");
strData = strData.replaceAll("%27","'");
strData = strData.replaceAll("%2C",",");
strData = strData.replaceAll("%2E",".");
strData = strData.replaceAll("%2A","*");
}
14 years ago
JSP

Abhishek Shirodkar wrote:Context:
My application has user interface having JSPs
The database being used in MySQL 5.0.

Problem:
The problem I am facing is some information in database is stored as special character.
Special character is not displayed correctly on the JSP page.
The datatype is BLOB.
The special character is displayed correctly in the database table but not diaplaying on the Jsp page when it is running..
I specified pageEncoding or content type in JSP pages. and also i changed the character set to UTF-8 but still does not works.
Any help is greatly appreciated.

Thanks in advnce...



I think if you want special characters to be displayed in JSP page correctly, you need to use escape characters. http://www.javapractices.com/topic/TopicAction.do?Id=96
14 years ago
JSP

Sagar Rohankar wrote:JSP Implicit Objects. and explicit objects are one we make available on JSP page usually getting them from the four scope available.



Thanks, good link for implicit objects.
14 years ago
JSP
Hello all,

I tried to show tool tip text for combo box items, but onMouseOver() is not working, i used title tag also.

But still i am not able display tool tip to the items.

Is there any alternative to it or way to do it?
What are implicit and explicit objects in JSP?
14 years ago
JSP