The object x
in y
.java file has x.a & x.b
I want those x.a
and x.b
to be displayed in a text field by writing code in jsp using struts 2 <s:textfield>
tag. How to do this? Please help me.
I have tried several options like
value=%{x.a}
value=%{#x.a}
.
Nothing worked and spent almost 5 hrs.
Should I do something like name="x" or value="x". My doubt is, how will the jsp page know that the x object is only accessed from the y.java file. How the mapping is done?