servlet that generates buttons

Posted on 2006-05-14
Last Modified: 2013-11-24
I'd like a servlet that I can call like this:
    <img src="">

Actually, the easiest thing would be to have some simple java code that takes various parameters like the text and colors and size and style and returns the button. I could write the servlet wrapper and caching for it.

Basically, I'm tired of having to create a new image for every button and then create a new version of each button for every color scheme I use. It's a lot of busywork.
Question by:HappyEngineer
    1 Comment
    LVL 30

    Accepted Solution

    Not sure if you can generate buttons on the fly ;-) I guess you would need to create one image and then you can modify the image by graying it, changing colour schemes and creating new files out of them:

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Return ZipOutputStream using Servlet 2 27
    sumHeights  challenge 17 50
    java continue statement 10 53
    Increment alphanumeric sequence 6 57
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now