What you need is called tag files in the JSP. I found that they are not so easy to learn and use as .NET custom elements.
You can use them similarly to .NET controls.
The workflow is as follows.
- Create tag file in web-inf / tags / AtillaTagLibrary / DropDownList.tag
link to your tag file in your jsp file as shown below
<%@ taglib prefix="ct" tagdir="/WEB-INF/tags/AtillaTagLibrary"%>
Use your tag file as a regular jsp tag.
<ct:DropDownList />
These tag files can receive attribute values ββfrom the outside, like user controls.
Atilla ozgur
source share