evaluating HTML-table quotes problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

evaluating HTML-table quotes problem

Nikita Koselev-2
Hi, I'm trying to evaluate such a code:
___________________
 Interpreter i = new Interpreter();

String result = "s = <table cellspacing=\"2\" cellpadding=\"3\"
border=\"1\" width=\"50%\"><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table>";

 Object res =  i.eval(result);
___________________

Code would be later used to create web page.

Thanks Nikita Koselev


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: evaluating HTML-table quotes problem

Paul Franz
Have you tried the following:

String result = "s = \"<table cellspacing=\\\"2\\\"
cellpadding=\\\"3\\\" border=\\\"1\\\"
width=\\\"50%\\\"><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table>\"";

Paul Franz


Nikita Koselev wrote:

> Hi, I'm trying to evaluate such a code:
> ___________________
>  Interpreter i = new Interpreter();
>
> String result = "s = <table cellspacing=\"2\" cellpadding=\"3\"
> border=\"1\" width=\"50%\"><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table>";
>
>  Object res =  i.eval(result);
> ___________________
>
> Code would be later used to create web page.
>
> Thanks Nikita Koselev
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: evaluating HTML-table quotes problem

Nikita Koselev
Thanks, it works! :)

> Have you tried the following:
>
> String result = "s = "<table cellspacing=\"2\"
> cellpadding=\"3\" border=\"1\"
> width=\"50%\"><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table>
> "";
>
> Paul Franz
>
>
> Nikita Koselev wrote:
> > Hi, I'm trying to evaluate such a code:
> > ___________________
> >  Interpreter i = new Interpreter();
> >
> > String result = "s = <table cellspacing="2" cellpadding="3"
> > border="1"
> width="50%"><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table>";
> >
> >  Object res =  i.eval(result);
> > ___________________
> >
> > Code would be later used to create web page.
> >
> > Thanks Nikita Koselev
> >
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Beanshell-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>

-----------------------------------------
ITV - Sinu lemmiksaated internetis!
http://www.itv.ee



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users