Does the ActionForm have a publicly-accessible getter for the DTO? You show only a private member, although your message vaguely implies that there is: it's really important to be clear in your messages what you've actually implemented.
Fidel Edwards
Ranch Hand
Joined: Mar 19, 2008
Posts: 202
posted
0
David Newton wrote:Does the ActionForm have a publicly-accessible getter for the DTO? You show only a private member, although your message vaguely implies that there is: it's really important to be clear in your messages what you've actually implemented.
What specifically is the problem? That it only works when the text tag uses "vehicleDTO.file"?
If so, I'd imagine that the text tag isn't using the defined bean but instead it's accessing the form directly. I don't know if you can use a <bean:define> bean in a text tag--the form tags access the form directly, if I remember correctly.
Fidel Edwards
Ranch Hand
Joined: Mar 19, 2008
Posts: 202
posted
0
David Newton wrote:What specifically is the problem? That it only works when the text tag uses "vehicleDTO.file"?
If so, I'd imagine that the text tag isn't using the defined bean but instead it's accessing the form directly. I don't know if you can use a <bean:define> bean in a text tag--the form tags access the form directly, if I remember correctly.
Yeah !! You are right !
But my problem is that when i am landing to this JSP page it is just showing those form attributes which are present in FormBean rather than normal Bean Class (or DTO).While I created a setter/getter of DTO in Form Bean.
But still ,to access DTO values I need to define bean explicitly.And in this case I have to define
Well FYI ! If i retrieve all the values from DTO then we do not need to define bean explicitly.
Here My question is that Whether is It necessary to keep the same name of id and property in <bean define while we are using the properties of DTO and FormBean at the same JSP ??>
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: significance of id and property in <bean:define />