try this instead
<%String str="";%/
<%str="Hello World"%>
<%=str%>

-Jay

--- Shuja Nawaz <[EMAIL PROTECTED]> wrote:
> 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;";%>
> >
> 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.
> From:
>  Shuwaz Abbasi.
>
>
===========================================================================
> 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


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

===========================================================================
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