File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Using Colour chooser and Font Chooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Using Colour chooser and Font Chooser" Watch "Using Colour chooser and Font Chooser" New topic
Author

Using Colour chooser and Font Chooser

rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Hi Folks,

I'm new to JSP.
I want to display Java Color chooser on JSP page on click of button.
Also I want to display Font chooser on click of button.
So how to do that?

Thanks,
Rahul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41101
    
  45
The Java code in JSP pages is executed on the server, so you can't use it to display the font or color choosers on the client. If using them is an absolute requirement, then you need to write an applet that's embedded in the web page.


Ping & DNS - my free Android networking tools app
rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Hi again,

Thanks very much.

Is there any other way to do this...?
Also, can you provide me Links where I can find help related to write applet for this?

Thanks again,
Rahul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41101
    
  45
The Sun Java Tutorial has an extensive chapter on applets.

Once you have created the applet you will need to use applet/servlet communication (most likely using HTTP) to get any selected color values/font values to the web app.
[ May 14, 2008: Message edited by: Ulf Dittmer ]
rahul Borkar
Greenhorn

Joined: May 14, 2008
Posts: 3
Thanks a lot Ulf,

I eill check with it and again post if I need any help.

Thanks,
Rahul
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using Colour chooser and Font Chooser
 
Similar Threads
Download pdf file in struts2
How to upload a file on the click of a button.
JButton is not displaying the background color
Right Click event
error for 'Back' navigation..IE