Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What can replace bc.getString()

Dhiren Joshi
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have this code snippet in a jsp.

/* BodyContent, pageContext.pushBody() and pageContext.popBody() APIs are used to read
values returned by tags into a String object(urls).
The String is then parsed to create a Map object.
The Map object will contain name of page as key and url of page as value.
String urls = "";
BodyContent bc = null;
bc = pageContext.pushBody();
urls = bc.getString().trim();

For some reason the new version of Web Server AppServer which runs this application has placed restrictions on the usage of BodyContent and pageContext to get the information.
What can the scriplet be replaced with such that I am still able to get the values of String urls as before.
Thanks .
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic