File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What can replace bc.getString()
 
Similar Threads
EVAL_BODY_BUFFERED question
The order of doEndTag, popBody
Body Content Problem
clear body tag question
PageContext.pushBody()?