S
sn1022
Hello. I was wondering if anybody could answer this question: My entire
struts application works fine, except that in my JSP I have a few
textboxes that are not only for the user to input data, but are also
required to output data. In other words, <input type="text" name="box1"
value=""></input> when you input data, and once you hit submit, it
simply forwards to the same JSP and displays the relevant information ,
taken from the database, inside the same textbox. What I did was this:
<input type="text" name="box1"
value="<%=projectform.getName()%>"></input>
That was the only way that I could have data inputted into the value
segment of the textbox.
However, now since I'm doing my resultsets, it seems as if I will need
to use bean-html tags to iterate thru results for example, so I will
need to use bean tags inside the value property of the textbox. The
problem is: it doesnt work! bean-html tags do not work inside the value
property! They work everywhere else, just not inside the value property
- the place I really need it. Can anybody help me?? Is there anyway
they will work inside the value property?
Thank you very much for your help.
struts application works fine, except that in my JSP I have a few
textboxes that are not only for the user to input data, but are also
required to output data. In other words, <input type="text" name="box1"
value=""></input> when you input data, and once you hit submit, it
simply forwards to the same JSP and displays the relevant information ,
taken from the database, inside the same textbox. What I did was this:
<input type="text" name="box1"
value="<%=projectform.getName()%>"></input>
That was the only way that I could have data inputted into the value
segment of the textbox.
However, now since I'm doing my resultsets, it seems as if I will need
to use bean-html tags to iterate thru results for example, so I will
need to use bean tags inside the value property of the textbox. The
problem is: it doesnt work! bean-html tags do not work inside the value
property! They work everywhere else, just not inside the value property
- the place I really need it. Can anybody help me?? Is there anyway
they will work inside the value property?
Thank you very much for your help.