How to extend X-Application

X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

Is there a little description or tutorial how to extend X-Application???
I plan the extend the DisplayTag.java class with a new attribute size. The .tld file I have to extend I know, but I’m not sure where to extend the class itself. The size defines the number of chars to display!

Hi Peter,
You need to do two things to extend a class as far as I know.
First you should write a new java class which extends the D?splayTag.java and add your new fields to this class. Also you will need to override some methods (Probably overriding processField will be enough for you.)
Then you should add this new tags definition to the .tld file.
(Don’t forget restarting tomcat and clearing its work directory.)
If this explanation is not enough for you I can send you an example of what you want.
Byeee

Hello,

Mehmet´s proposal to extend the class is good and sometimes used by people to extend the functionality.

Alternatively you could check the topic
sorting. Here I described how to add an attribute and evaluate it´s value for the directcommand.

Regards, Harald