aspose 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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
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: 42585
    
  65
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: 42585
    
  65
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Colour chooser and Font Chooser