Skip to Main Content

Java Development Tools

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!

writer.writeAttribute("onError", "(this.src=variable)", "onError")

1004526Dec 27 2013 — edited Jan 2 2014

    Below line works perfectly

    writer.writeAttribute("onError", "(this.src='/path/image.png')", "onError");  //it assigns src attribut of html img tag with "/path/image.png" value if error occurs

    What i need

    String variable = "Something";

    writer.writeAttribute("onError", "(this.src=variable)", "onError");  //it want to use a variable

This post has been answered by Timo Hahn on Dec 27 2013
Jump to Answer

Comments

Solomon Yakobson
Answer

Merge updates/deletes matching rows and/or inserts non-matching rows. When matched means we took source row (source is defined by USING clause) and found a matching row in target (defined by INTO clause). In such case we can update/delete target row but not insert like in your example. When not matched means we took source row (source is defined by USING clause) but didn't find a matching row in target (defined by INTO clause). So what's here to delete from target?
SY.

Marked as Answer by User_8GUKB · May 28 2022
User_8GUKB

thank you for your clarity

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details