OK, let’s get real...

Remember the beer webapp from Chapter 3? Let’s improve it a bit, and automate part of the HTML form:

image with no caption

If we make the options dynamic, they’ll be easier to update and change, without messing around with the HTML. Instead, we want the options to be generated from a Java List created in the web application. So here’s the custom tag we want to build:

image with no caption

Brain Power

Do you think the name and size attributes should allow runtime values? Why or why not?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset