• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing xml text into taglibrary

Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page in which I have a paragraph tag. This paragraph tag parses xml data and creates content on the page. And yes its not the best way but I'm choosing this for a reason.
So my ? is.
i have
<COntent argraph>
<% BufferedReader br = new BufferedReader(New FileReader(...));
... and so on. This part works I know ...
</Content aragraph %>
The problem is when I parse the string containe this
( inside the tagLibrary )
String bodyText = bodyContent.getString();
... inits the document object ...
document = builder.parse(bodyText);
this is where it bombs. Its like the servlet is converting the data and i get a
File " ]> my description " not found
this text being passed in has an internal DTD defined inside.
Is there a specific way to pass the data in, inside the body of a tag?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic