I would like to ask u guys that if we display our results using bean:write. It displayed integer as it is retrieved from the database but i don't want to display it as integer. I want it to display as a string. For example, if it retrieved the integer 1 then it should display published instead of the number 1 on my page.
Anyone knows how to do it? Thanks in advance.
It sounds like you are using struts if you are using bean:write. In that case you would have an action form. In your Action class put the integer into the form as a String variable then when youmake the bean:write it will be taking the variable form the form
<bean:write name="myForm" property="variableName" />