By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,737 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,737 IT Pros & Developers. It's quick & easy.

Servlets/Jsp

P: 1
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.
Jan 27 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 168
>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 ServletOutputStream 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.lowagie.com/examples/com/lowagie/examples/general/webapp/HelloWorldServlet.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.Else where try designing your customized control

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

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

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

http://www.webreference.com/programming/javascript/gr/column11/

http://www.freedownloadscenter.com/Web_Authoring/HTML_to_ASCII_Converters/HTML_to_RTF_Pro_DLL.html


Hope this helps...

REGARDS,

Source: http://forum.java.sun.com/thread.jspa?threadID=5130077&messageID=9466157#946 6157
Jan 30 '07 #2

10K+
P: 13,264
>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 ServletOutputStream 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.lowagie.com/examples/com/lowagie/examples/general/webapp/HelloWorldServlet.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.Else where try designing your customized control

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

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

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

http://www.webreference.com/programming/javascript/gr/column11/

http://www.freedownloadscenter.com/Web_Authoring/HTML_to_ASCII_Converters/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.
Jan 30 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.