Results 1 to 2 of 2
  1. #1
    yuchuang is offline Member
    Join Date
    Apr 2007
    Location
    Singapore
    Posts
    29
    Rep Power
    0

    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
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    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: 989
    Last Post: 06-27-2014, 07:23 PM
  2. Replies: 1
    Last Post: 01-29-2009, 09:35 AM
  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
  •