ページにボタンを挿入して、クリックすると、インポートされた XSL ファイルのテキスト領域に lorem lipsum テキストの本文を自動生成したいと考えています。クライアント側のスクリプトはあまり好きではなく、可能であれば JSTL が好きなので、Javascript はあまり使いたくありません。
私はそのようなことを試みていましたが、運はありません:
<button type="button" onclick="some variable?">lorem lipsum</button>
<c: if test= "onclick some variable?">
<c: import url="loremlipsum.com/xml..." var="autoGen"/>
<c: import url="my.xsl" var="stylesheet"/>
<x: transform xml="${autoGen}" xslt="${stylesheet}"/>
</c:if>
<input type="text" name="body">
私のonclickのために何をコーディングするべきかについて何か考えはありますか? とその変数?
乾杯