• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

passing xml text into taglibrary

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic