Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

[#text: String] being displayed in output

 
Gaurav Pawar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
My Bean parses the data in an XML file, prepares a string and passes it to a JSP Page. When i am to display this string in the browser it shows me
[#text: abcd][#text: efghi]. Please can anyone suggest how do i rectify this?

When i run the bean alone i see the output as "abcd" and "efghi".

Gaurav.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
"gkpawar Pawar", welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.

In answer to your question, probably your bean is using the toString() method of a node to produce the node's text value. This is implemented differently in different DOM implementations and should not be relied upon.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this topic.
 
    Bookmark Topic Watch Topic
  • New Topic