0
<bean:write name="<%=(String) currentItr.next()%>" property="<%=(String) currentItr.next()%>

this creates value (111)

is it a good practice to do the following:

    <input type="text" value=<bean:write name="<%=(String) currentItr.next()%>" property="<%=(String) currentItr.next()%>"/> 

such that the html generated will look like:

<input type="text" value="111"/> 
bouncingHippo
  • 5,940
  • 21
  • 67
  • 107
  • Have you at least tried it before posting this question? If you don't, then do it and come back with a real problem. – Luiggi Mendoza Oct 04 '13 at 15:10
  • @LuiggiMendoza is it a good practice to do it that way then? – bouncingHippo Oct 04 '13 at 15:15
  • Ok, now your question has really changed. Refer to http://stackoverflow.com/q/3177733/1065197 for more info. By the way, in short, **no**, it is not a good practice. – Luiggi Mendoza Oct 04 '13 at 15:16
  • Please don't ask the same question twice, and if you'll recall this whole going back-and-forth between "two" users isn't acceptable. – Dave Newton Oct 04 '13 at 17:27
  • Of course it's not a good idea to use scriptlets. You should be doing more work on the Java side, and be using JSTL and JSP EL. – Dave Newton Oct 04 '13 at 17:28

0 Answers0