You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sharath karnati <ka...@yahoo.com> on 2008/11/28 23:30:18 UTC
Using dojo widgets in struts2(Need your help)
Hi All,
I'm using dojo widgets for displaying UI, I'm having below code for accepting first name
<input type="text" id="first_name" name="first_name"
dojoType="dijit.form.ValidationTextBox"
required="true"
propercase="true"
promptMessage="Enter first name."
invalidMessage="First name is required."
trim="true" />
After entering text in first name, I'm submitting form(dojoType="dijit.form.Form") and action class is able to read the value which is given in this text field.
Now what I want is, I'm setting "first_name" value in my action class and displaying this UI. The "first_name" not displaying value which is set in action class.
When I use struts2 tag
<s:textfield id="first_name" name="first_name" />
It is displaying value set in action class.
Can anyone please help me, how to read value which is set in action class for displaying in dojo widget.
Thanks for your help.
Regards,
Sharath.