Results 1 to 2 of 2
  1. #1
    yuchuang is offline Member
    Join Date
    Apr 2007
    Rep Power

    Default About bean:write

    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.

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Rep Power


    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" />

Similar Threads

  1. What are you using to write your code?
    By CaptainMorgan in forum New To Java
    Replies: 1037
    Last Post: 03-20-2017, 06:03 AM
  2. Replies: 0
    Last Post: 04-06-2008, 07:43 PM
  3. Replies: 0
    Last Post: 03-30-2008, 10:03 AM
  4. Replies: 0
    Last Post: 09-26-2007, 08:36 PM
  5. Struts tag error with bean:write
    By sandor in forum Web Frameworks
    Replies: 1
    Last Post: 04-07-2007, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts