473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
Jan 27 '07 #1
2 2071
rengaraj
168 100+
>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
r035198x
13,262 8TB
>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

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

Similar topics

2
by: N.K. | last post by:
Hi, I'm using Tomcat 7.2 and I'm trying to deploy an aplication that uses JSP and servlets. I'm actually trying to duplicate a production server but can't get it right. In the directory...
1
by: Sascha Pohlmann | last post by:
hello, I have the following problem: I would like to evacuate the logic from my jsp files in servlets. servlets provide database contents prepared in HTML tables, the jsp files are supposed...
3
by: Jose Munoz | last post by:
Hi all, I want to share some data for all my applications (servlets and jsps). For this i am using a JSP to set the variables with scope=application. When i get this data from some JSP all is o.k,...
0
by: Ruaan Kruger | last post by:
Hi there, I'm a junior java programmer that has just started working on j2ee. The company I worked for is currently using Struts for all new implementations etc. The problem is however that...
3
by: InterEC.NET | last post by:
Hello, Is there any C++ library or tool that is similar in functionality to what java servlets offer. We run an engineering job search website which is running on a home brewed java servlet...
3
by: Bit Byte | last post by:
I have written a custom servlet engine (and "wrapper" servlets) for some legacy code (C/C++) that I have. The servlets contain the bulk of my 1st 2 layers in a 3 tier architecture - i.e. data...
2
by: prakashsurya | last post by:
gud evening i need a help about servlets its a bit urgent actually the problem i am facing is when i use doGet method i am getting the result in servlets but when i am going for doPost i am...
0
by: ank99 | last post by:
hello...i m trying to run servlets(using GET) from wml page..... using apache tomcat 5.5 server and WinWap for Windows(version 3.2.1.28.)....its working fine as far as just to display wml form...
1
by: ank99 | last post by:
hello...i m trying to run servlets(using GET) from wml page..... web server : apache tomcat 5.5 server WAP Browser: WinWap for Windows(version 3.2.1.28.).... its working fine as far as just to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.