Is it possible to add a custom JSP tag that extends the capabilities of the basic HTML tags, like for forms to add an 'attribute' to automate connection to a database?
You can do a lot with JSP custom tags, but keep in mind that
- JSP tags will be processed (executed) before the (resulting) HTML code is sent to the browser
- Only then will the HTML tags be processed
So if you (for instance) create a JSP FORM tag like this
<mytags:FORM DBDRIVER="..." DBURL="..." DBUSER="..." DBPASSWORD="..."> ... </mytags:FORM>it will be executed before any HTML FORM tag used in the JSP page.