wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes What can replace bc.getString()  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "What can replace bc.getString()  " Watch "What can replace bc.getString()  " New topic
Author

What can replace bc.getString()

Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
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();
pageContext.popBody();
%>

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 .
Dhiren
 
Don't get me started about those stupid light bulbs.
 
subject: What can replace bc.getString()