Servlets/Jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Roshini
    New Member
    • Jan 2007
    • 1

    Servlets/Jsp

    Hi all,

    I would like to know how to display a read rtf file content to open in rtf format through browser based rtf editor in servlets/Jsp. Can anyone give me the suggestions, how to achieve it.
  • rengaraj
    New Member
    • Jan 2007
    • 168

    #2
    >I would like to know how to display a read rtf file content to open in rtf

    Hey friend,
    all you have to do is to read the file collect the whole of data from that .rtf document in a buffer (array of bytes) and then output it through ServletOutputSt ream by setting response content type to be text/rtf.

    Try checking out an example code mentioned in the link to get some idea about what i was refering to.

    http://itextdocs.lowag ie.com/examples/com/lowagie/examples/general/webapp/HelloWorldServl et.java


    >format through browser based rtf editor in servlets/Jsp

    If you wanna format the rtf data you might have to go for a customized control (refered by my fellow poster) which could have been already implemented.Els e where try designing your customized control

    http://thepeninsulased ge.com/adfblog/2006/12/11/adf-faces-rich-text-editor-to-create-formatted-text/

    http://dojotoolkit.org/docs/rich_text.html

    http://www.crazysquirr el.com/computing/java/jsf/html-editing-widgets.jspx

    http://www.webreferenc e.com/programming/javascript/gr/column11/

    http://www.freedownloa dscenter.com/Web_Authoring/HTML_to_ASCII_C onverters/HTML_to_RTF_Pro _DLL.html


    Hope this helps...

    REGARDS,

    Source: http://forum.java.sun. com/thread.jspa?thr eadID=5130077&m essageID=946615 7#9466157

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by rengaraj
      >I would like to know how to display a read rtf file content to open in rtf

      Hey friend,
      all you have to do is to read the file collect the whole of data from that .rtf document in a buffer (array of bytes) and then output it through ServletOutputSt ream by setting response content type to be text/rtf.

      Try checking out an example code mentioned in the link to get some idea about what i was refering to.

      http://itextdocs.lowag ie.com/examples/com/lowagie/examples/general/webapp/HelloWorldServl et.java


      >format through browser based rtf editor in servlets/Jsp

      If you wanna format the rtf data you might have to go for a customized control (refered by my fellow poster) which could have been already implemented.Els e where try designing your customized control

      http://thepeninsulased ge.com/adfblog/2006/12/11/adf-faces-rich-text-editor-to-create-formatted-text/

      http://dojotoolkit.org/docs/rich_text.html

      http://www.crazysquirr el.com/computing/java/jsf/html-editing-widgets.jspx

      http://www.webreferenc e.com/programming/javascript/gr/column11/

      http://www.freedownloa dscenter.com/Web_Authoring/HTML_to_ASCII_C onverters/HTML_to_RTF_Pro _DLL.html


      Hope this helps...

      REGARDS,

      Source: http://forum.java.sun.com/thread.jsp...466157#9466157
      Please while we appreciate responses to posts, we do not allow links to other forums.

      Comment

      Working...