but our object doesn't have a property called "mystring"
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Originally posted by Rodrigo Alvarez:
Doesn't matter. What this setProperty standard action does is trying to set all the properties of the bean whose id == "name" from the request parameters. And yes, you're right, as String doesn't have any bean property setters, this line won't have any effect.
m sorry, I don;t uderstand, what doesn't matter? Because later you wrote I'm right.
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
Originally posted by Rodrigo Alvarez:
Hi Aleksander, sorry , didn't mean to offend you.
Originally posted by Rodrigo Alvarez:
I just meant that it does not matter that the bean doesn't have a "mystring" attribute, because that was not what the setProperty action was trying to access.
Originally posted by Gupta Vivek:
Assume that the request for this page contains a parameter mystring=hello.
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
But we also have a request parameter named *mystring*
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
The moustache of a titan! The ad of a flea:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|