Tuesday, December 4, 2007

apply struts 1 taglib on struts 2

the below codes was failed
<-s:iterator value=results /->
<-fmt:formatNumber value="<-s:property value="score' />" />
<-/s:iterator->

Then,

the below codes was running
<-s:iterator value=results /->
<-bean:write name="score" pattern="##.00" />
<-bean:write name="date" pattern="dd/MM/yyyy" />
<-/s:iterator->

we need to do the below steps first:
1. put this tags "<%@ taglib prefix="bean" uri="/tags/bean" %>" on the top of ur codes.
2. append the below code in ur web.xml

/tags/bean
/WEB-INF/tld/struts-bean.tld

3. u should hv the struts1 library and put in ur webapp lib..
4. good luck.. hehehe


This case was solved and closed...
:D