Session A Mwamufiya wrote:
Is there a simple example I can follow? That's the best way I learn.
http://struts.apache.org/2.x/docs/using-checkboxes.html includes a
detailed example.
-Dale
-
To unsubscribe, e-mail: [EMAIL PR
I appreciate the explanation on how it's all supposed to work, but given my
limited experience with struts 2 and this type of framework as a whole, I am
not yet proficient enough to figure out where things are being generated. I
use log4j to log a number of events in my code, but I don't even k
Dale Newfield wrote:
OK--now this request goes to your server. Hopefully eventually to
struts. Struts then steps through the interceptors and eventually calls
your action. The action does it's thing and selects a result.
And this whole process can generate as many logs as you have log4j set
Session A Mwamufiya wrote:
I used the key to get the label text from a properties file.
If that's the only reason you used it, then the label attribute is more
appropriate.
Interestingly, the html source code shows the value as true, even if it is not
checked when displayed.
That means t
--- Session A Mwamufiya wrote:
> Interestingly, the html source code shows the value
> as true, even if it is not checked when displayed.
Not relevant; the only time the value matters is on
submission--The value has to be set so the browser
knows what to send on submission.
d.
_
The name appears as overwriteFlag, so the name took precedence. I used the key
to get the label text from a properties file.
Interestingly, the html source code shows the value as true, even if it is not
checked when displayed.
The action variable should be a String or a boolean? I tried both
Session A Mwamufiya wrote:
Isn't key a shorthand for name, value, and label? If so, I'm not sure
which of name and key will win. Look in the generated html--is the name
attribute of the corresponding input tag overwriteCheckbox or overwriteFlag?
-Dale
Hi,
I have the following checkbox in my jsp:
In my action, I have defined overwriteFlag as a String variable, and have a
getter and a setter for it. Nevertheless, when I submit the form, I always get
null when I try to check the value.
Any ideas what I could be doing wrong?
Thanks,
Session
8 matches
Mail list logo