Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes adding font formatting features to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "adding font formatting features to jsp" Watch "adding font formatting features to jsp" New topic

adding font formatting features to jsp

Sankha Ray

Joined: May 01, 2010
Posts: 6
Hi all,
I am new to j2ee, and i have to make a page where the text area for a field has a certain aspect. If we select some portion of the sentences that will be written in it,and click on the bold option(much like the one i am using here),that portion will be in bold letters and will be saved accordingly in database.

I have no idea about javascript and i am new to jsp.So can you give me a little outline for how to do it? i don't want spoonfeeding,just a liitle idea as i am very short on time for this one.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

JSP will be of no help to you. You'll need to use a JavaScript rich text editor.

[Asking smart questions] [About Bear] [Books by Bear]
Sankha Ray

Joined: May 01, 2010
Posts: 6
may i know which rich text editor is used in javaranch?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

We don't have a rich text editor here at the Ranch. We have a plain HTML textarea along with a bunch of UBB style tags/buttons that work with pure JavaScript.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You could check for Primefaces that it is a component of JSF. It has a text editor.

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Another JSF solution is to use the RichFaces Editor control.

But for non-JSF pages, there's tinyMCE, which is what RichFaces builds on. There's also several other rich text editor components available, but for those I'll just have to recommend your favourite search engine.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: adding font formatting features to jsp
It's not a secret anymore!