Hi.
I hava a string which contains an expression. I want it to be evaluated on
the same page.
Here is the code.
<%String str="";%>
<%str="&lt;%out.println(\"Hello World\");%&gt;";%>
<%=str=str.valueOf(str)%>

I want the output as;  Hello World
but the output is;  <%out.println("Hello World");%>

We have evaluate fuction in ASP.
Please can anybody tell me how to evaluate this expression.to get HelloWorld
as output.

Thank you in anticipation.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to