0
jspsを扱う際に問題が発生しました。 2番目のcout <c:out value="" />
には何も表示されませんが、その上にcoutが表示されるので、 'Text'と表示されます。これはバグですか、何か間違っていますか?質問のコメントから奇妙なjspの振る舞い
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="forms" uri="http://www.common-controls.com/cc/tags-forms"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html:form action="/rulesDetail">
<forms:form type="edit" formid="rulesDetail">
<forms:section title="Title">
<forms:row>
<forms:plaintext label="Label1">
<c:out value="Text"/>
</forms:plaintext>
</forms:row>
<forms:row>
<forms:plaintext label="Label2">
<c:out value="" />
</forms:plaintext>
</forms:row>
</forms:section>
</forms:form>
</html:form>
'Text'という出力が2回表示されますか? – Thomas
はい、もう1つ下にあります – hhh3112
うーん、 ' 'のソースから、その動作を示すものは表示されません。この方法で空のコンテンツを処理するのは、実際にはタグではないことを確認しましたか? –
Thomas