Shakti Singh
Shakti Singh

Reputation: 9

size attribute in Struts2 UI Tags

Could anyone explain me what does size attribute do in struts2 tags ?

Does it limit input at the time user in entering value to respective field ? Or is it for something that happens after submission of form ?

Upvotes: 0

Views: 192

Answers (1)

Andrea Ligios
Andrea Ligios

Reputation: 50271

Once the page is rendered, Struts tags don't exist anymore, they've become pure HTML at that point.

So it's definitely NOT for something that happens after submission of form.

The size attribute is the HTML size attribute, it styles a textfield (in a very old way, you should use CSS instead), if you want to limit the inputable chars, you might want to use maxlength.

Upvotes: 1

Related Questions