This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing xml text into taglibrary  RSS feed

 
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?
thanks,
nick
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!