Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to store multiline string literal in to java bean shell variable

911800Mar 22 2012 — edited Mar 22 2012
Hello Experts

How to store multiline string literals in java bean shell like we use triple quote for jython variable

Using Jython

str=""" helllo
welcome to my world"""

above syntax is working but not for java bean shell like below

String str=""" hello
welcome to my world""";

So how to do this in java bean shell. I came to this scenario while storing logs to a variable. I believe there is no solution for storing multiline strings to java bean shell variable.
<@
String str="<%=odiRef.getPrevStepLog("MESSAGE")%>";
@>

Any suggestion will be highly appreciated.
Thank You.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2012
Added on Mar 22 2012
0 comments
694 views