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?

Jorge Jordão

You can do a lot with JSP custom tags, but keep in mind that

  1. JSP tags will be processed (executed) before the (resulting) HTML code is sent to the browser
  2. 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="...">
it will be executed before any HTML FORM tag used in the JSP page.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact