I'm in an e-commerce project, and I need to display the name of a product. I'm thinking of using a label for this. The idea is to leave x characters visible, if the title exceeds this x number of characters, display "...". I do not know how to do this, nor if the best option or if it is possible with a label.
Remarks: I am using jsp to retrieve the product title from the database. The programming language is JAVA and I use html and jsp . I can retrieve the name with <%anuncio.getTitulo()%>
.
Any tips or hints on how to do this?