I have question, sounds simple, but I'm very new to
JSP Code Snipet: <logic:equal name="myDetailsActionForm" property="myDetails.listBoxPopulated" scope="request" value="true"> <html:text name="myDetailsActionForm" maxlength="3" size="3" property="myDetails.textBox" styleId="TxBox" disabled="true" /></logic:equal><logic:notEqual name="myDetailsActionForm" property="myDetails.listBoxPopulated" scope="request" value="true"> <html:text name="myDetailsActionForm" maxlength="3" size="3" property="myDetails.textBox" styleId="TxBox" disabled="false" /></logic:notEqual>
Using this same code, if I had another text box, is there a way that I can populate this text box, using the value of the fist one...
What I want to do is when the code evaulates to the notEqual, it will display the tesxt field, but it will be readonly and it will have the
string value that was entered into another textbox.
ie, when I do this:
<html:text name="myDetailsActionForm" maxlength="3" size="3" property="myDetails.textBox2" styleId="TxBox2" disabled="false" value="myDetails.textBox2.value"/>
It seems that any combination I've tried with the value="myDetails.TxBox.value" will always put the string "myDetails.TxBox.value" in the text box, what I want is the value in the textbox, (the string that the user entered in)
I have tried all sorts of combiniation, but I always get the string of what ever is inside the " " value="whatEverIsHere"
Am I going complete the wrong way about this...?