Results 1 to 2 of 2
  1. #1
    sandor is offline Member
    Join Date
    Apr 2007
    Location
    Pennsylvania,USA
    Posts
    45
    Rep Power
    0

    Default Struts tag error with bean:write

    I have a field in my data base for normal blood values which are like "< 12". When I use bean:write to output this data I get an error. How can I escape the "<" sign?

  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Location
    Indiana
    Posts
    83
    Rep Power
    0

    Default

    When you use the bean:write tag add the filter="true" attibute. That will escape any html characters that are in your data.

Similar Threads

  1. Replies: 0
    Last Post: 04-07-2008, 08:54 PM
  2. Replies: 0
    Last Post: 04-06-2008, 08:43 PM
  3. File Write Error
    By vikain in forum Advanced Java
    Replies: 5
    Last Post: 01-02-2008, 05:38 AM
  4. Struts Form Bean with property
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-27-2007, 11:10 AM
  5. About bean:write
    By yuchuang in forum Web Frameworks
    Replies: 1
    Last Post: 04-30-2007, 04:31 PM

Posting Permissions

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