Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2007, 04:59 AM
Member
 
Join Date: Apr 2007
Location: Singapore
Posts: 30
yuchuang is on a distinguished road
Send a message via MSN to yuchuang
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-30-2007, 04:31 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
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" />
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are you using to write your code? CaptainMorgan New To Java 250 Yesterday 05:36 PM
How to write a java bean class object to XML file Java Tip java.io 0 04-06-2008 08:43 PM
How to use Inner bean definitions via nested bean elements Java Tip Java Tips 0 03-30-2008 11:03 AM
How to use Inner bean definitions via nested bean elements JavaBean Java Tips 0 09-26-2007 09:36 PM
Struts tag error with bean:write sandor Web Frameworks 1 04-07-2007 05:50 AM


All times are GMT +3. The time now is 05:04 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org