开发者

Error in my jsp

Hello i have this error and i don't know I do not know what that means

Attribute value "listLienDoc_"+i+"" is quot开发者_开发问答ed with " which must be escaped when used within the value

Thx..


Replace

<html:select styleId="<%="listLienDoc_"+i+""%>"

with

<html:select styleId='<%="listLienDoc_"+i %>'


I guess the problem is this statement: "<%="listLienDoc_"+i+""%>"

at least the +"" is useless - you can remove it.

And then put the complete argument value in ' instead of " - may you should do this with all the other arguments to, because it is always better to not nest ".

<html:select
   styleId='<%="listLienDoc_"+i%>'
   name="typeLien" property="listUtilitaireBean.typeLien"
   value="<%=typeLien.toString()%>"
   onchange="<%="changeList("+i+");"%>"
   indexed="true">

On the other hand my you do it complete different:

<html:select styleId="listLienDoc_<%=i%>" ...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜