It's not a secret anymore!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "adding font formatting features to jsp" Watch "adding font formatting features to jsp" New topic
Author

adding font formatting features to jsp

Sankha Ray
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sankha Ray
Greenhorn

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

Joined: May 26, 2003
Posts: 30076
    
149

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, 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.


[uaiHebert.com] [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: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding font formatting features to jsp
 
Similar Threads
Need to create the Bold/Italic Font size functionality in the JSP web page
Help me out in JTable Cell creation
SCJP 1.5 portion
JTextPane not reflecting changes
styledoc to html conversion