JSP image button problem

Hello
I have a noob problem. I am trying to create an image button in my JSP page. I want to have an image as the background for the button with dynamic text on top of the image (in the foreground).
This is what I have so far.
<html:link href="javascript:submitLink('Monthly');"><html:img srcKey="button.buyPremium" altKey="motorInsuranceQuote.label.monthly"  />Monthly Payment: <c:out value="${MotorInsuranceQuoteForm.monthlyPremium}" /></html:link>The problem with the above code is that it produces an image button that doesnt have the dynamic text on top of the image and centred. How can I go about doing this?
Thanks in advance for any help :-)

sorry, may be my lack of awareness or my curiosity to solve the issue forced me to ask such a wide (a bit foolish too,l i agree) question. sorry
but can u tell which all packages i hav to download from http://jakarta.apache.org/commons/fileupload/ for the proper working of this. bcoz i can see too many projects there in the download area. so that forbade me from doing some scratch works in that code. help me if u can
aleena

Similar Messages

  • Image button in jsp

    Hello
    To delete or update a item in a list in a form, I create some image buttons with name. I want to get the value of each button after clicking as the following:
    <form method="post">
    <input type="image" name="button1" value="1" src="a.gif" alt="Update">
    <input type="image" name="button1" value="2" src="a.gif" alt="Update">
    <input type="image" name="button1" value="3" src="a.gif" alt="Update">
    <input type="image" name="button2" value="1" src="b.gif" alt="Delete">
    <input type="image" name="button2" value="2" src="b.gif" alt="Delete">
    </form>
    I want to use the value of this button to do something such as
    if request.getParameter("button1"){
    get value of this parameter
    if value =1{
    do something-update}
    if value=2 {
    else if request.getParameter("button2"){
    get value of this parameter
    if value =1
    do something else}
    However, I cannot do this in IE but can do in FireFox.
    Could you please help
    Many thanks for any help
    shoa

    hi shoa,
    for jsp servlet its better to use in javascript like , write a function that takes to servlet where u want to do the update or delete.
    function fnUpdate()
         document.form1.action = "servletName?hidMode=0";
         document.form1.submit();
    function fnDelete()
         document.form1.action = "servletName?hidMode=1";
         document.form1.submit();
    <input type="button" value="Update " onClick="fnUpdate()">
    <input type="button" value="Delete " onClick="fnDelete()">
    and in the servlet u can get the hidMode value
    int hidMode = 0;
    hidMode = request.getParameter("hidMode");
    switch (hidMode) {
    case 0:
    call a method that update the list.
    break;
    case 1:
    call a method that delete the list
    break;
    good luck i think this will solve ur problem
    regards
    haribabu

  • Using Bridge to Camera Raw to Open Image button also drop shadow problems

    I remember when I was working with RAW in PSE 8. I would be in Bridge looking at a pic and double click on it. PSE 8 would open in Camera RAW and I could play with the pic a bit, make some adjustments, then click on OPEN IMAGE. When I did that it would open in PSE and it would be in jpg format. With this PSE 9 and the updated Camera RAW 6.3, when I punch OPEN IMAGE I still have a picture labeled .CR2 which I think still means RAW. When I double click in Bridge the .CR2 pic shows as 8 bit depth. I can do a little more work on it and use SAVE AS. When I do that, the sample file name that shows is still in .CR2 format and I must change that to .jpg and then below change from PHOTOSHOP to JPEG to save my file as a jpg file. Is there something that I have to change in preferences to get it to open the image in jpg format when I hit the OPEN IMAGE button? Or, is this an "improvement" with RAW 6.3? Also, I seem to be having trouble adding a drop shadow (or any other effects) on jpeg pics. At least it doesn't show up on the screen after I apply it. I just recently updated to Camera RAW 6.3 and updated my Operating system on my iMac computer to OS 10.6.6. I emailed this request to my good friend with an identical setup on his iMac and he is having the same response when performing the above operations. Any ideas what the problem might be?

    Okay, previously you seem to have been using the bridge version of camera raw to edit your raw photos. That has many more options than the PSE version of the raw converter. (If you still have PSE 8, you can see the difference by using File>Open in the editor to open a raw photo for the PSE version of ACR, which works the same way in PSE 9.) In PSE's raw converter, you use the Open button, then save your photo in an image format in the editor. The Save button in ACR in PSE is only the DNG converter.
    Layer styles should work exactly the same way as in PSE 8. However, in any version of PSE a drop shadow, like a real shadow, needs someplace to fall, so unless there is empty space on the layer, it won't appear. Try creating text or drawing and simplifying a shape and adding a drop shadow. Does it appear then?
    Also remember that Jpegs won't let you save either layers or transparency when you resave the file.

  • RE: [iPlanet-JATO] image button handling

    Hi Todd,
    from what I have seen so far on the Project they are just buttons on
    the page.
    In the interim, I modified RequestHandlingViewBase.acceptsRequest() to
    handle the matching of parameter and command child names.
    from
    if (request.getParameter(commands)!=null)
    return getCommandChildNames()[i];
    to
    if (request.getParameter(commands[i])!=null ||
    (request.getParameter(commands[i]+ ".x")!=null ))
    return getCommandChildNames()[i];
    This fixed the problem with the image buttons in our cases.
    Kostas
    -----Original Message-----
    From: Todd Fast
    Sent: 10/27/00 6:21 AM
    Subject: Re: [iPlanet-JATO] image button handling
    Hi Kostas--
    I wanted to get some feedback on the known issue of the
    handleXXXXRequest method not being fired for buttons which have
    images, due to the the browser submitting
    the pixel coordinates back to the server like this:
    Page1.ImageButton1.x=...
    Page1.ImageButton1.y=...
    As the ND conversion project we are currently working on heavily uses
    image buttons we would like to get and indication if and when a patch
    is planned for this.
    Our current work around is to remove the src attribute from the JATO
    tags in the JSPs.We are currently working on getting this fixed. One question--what is
    the
    relative type of usage of image buttons in your project? Are they just
    buttons on the page (view bean), or do they appear in tiled views as
    well?
    Todd
    [email protected]
    [Non-text portions of this message have been removed]

    OK, here's what I'm trying to do: We have, like you said, a menu
    page. The pages that it goes to and the number of links are all
    variable and read from the database. In NetD we were able to create
    URLs in the form
    pgXYZ?SPIDERSESSION=abcd
    so this is what I'm trying to replicate here. So the URL that works
    is
    pgContactUs?GXHC_GX_jst=fc7b7e61662d6164&GXHC_gx_session_id_=cc9c6dfa5
    601afa7
    which I interpreted to be the equivalent of the old Netd way. Our
    javascript also loads other frames of the page in the same manner.
    And I believe the URL-rewritten frame sources of a frameset look like
    this too.
    This all worked except for the timeout problem. In theory we could
    rewrite all URLs to go to a handler, but that would be...
    inconvenient.

  • Overlaping buttons problem (AS 3.0)

    When you have two buttons that end up one on top of the
    other, is there a way to tell it to disregard the one at the bottom
    and just use the top one.
    This is what's going on:
    I have a stage that has an image with "hotspots" (invisible
    buttons all over)
    I aslo have a pull-out menu on the side that, when pulled
    out, overlays the background image.
    the problem is when the pull-out menu buttons fall on top of
    the background buttons, they don't work.
    Can I temporarily de-activate the background buttons while my
    pullout tray is out?
    Thanks,
    Pat

    Wow! That's just TOO simple! It just might work.
    Thanks folks!
    Pat
    (I should have known that going to the "Fly by the Seat of
    your Pants" school of Action Script 3.0 would have it's
    drawbacks)

  • Flash objects (images/buttons/etc) does not display on some PC's

    I am trying to deploy an out of the box web application called the Mid-Tier, where some forms/pages in the application have embedded flash images/buttons/icons that do not display on IE despite the fact that there is Flash installed on these PC's. Most of the PC's are XP.
    I suspect it is some of the security settings in IE. Unfortunately security options are disabled to end users so I cannot even get to see what these settings are..
    This web application works perfect on some test PC's that have default browser settings and the same flash version installed.
    The flash objects appear on these screens as white boxes instead of some control buttons and icons that should have been displayed.,. Hence these pages are non functional.
    Any hints?
    Joe

    Hello David,
    except the latest Flash Player you have also and the latest Java installed (Next Generation Java Plug-in 10.25.2 for Mozilla browsers) , check if you activate the plugins : [https://support.mozilla.org/el/kb/troubleshoot-issues-with-plugins-fix-problems#w_determining-if-a-plugin-is-the-problem Determining if a plugin is the problem], select always active.
    see also: [https://support.mozilla.org/en-US/kb/why-do-i-have-click-activate-plugins#os=win7&browser=fx23 Why do I have to click to activate plugins?]
    you said : ''One guy said you could fix it by going Tools > options > content > make sure Automatically load images is checked (but there is no such thing on that tab in my Firefox????)''
    not exist any more from 23.0 version and above (see : http://www.mozilla.org/en-US/firefox/23.0/releasenotes/) because of this : http://limi.net/checkboxes-that-kill , if you 1 (as a value) in '''permissions.default.image''' in [http://kb.mozillazine.org/About:config about:config] you are OK (checked[v]).
    also many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • CP6 - Image button needs clicked twice.

    I am having an issue where an image button inside a group sometimes needs to be clicked twice before the associated success action is fired.  This is how I have it set up.
    3 groups on the slide are initially hidden.  on the slide I have a smart shape button that has an action that shows 1 of the two groups.  In the 1st group I have an image button that hides the 1st and shows the 2nd group.  (think of it as a next button)  Then in the 2nd group I have 2 image buttons.  One for previous (shows group #1) and one for next (shows #3).
    Group 1 and 2 both have a next button in the same exact spot and if I open group 1, click next, click previous, and try to click next again (on group #1) I have to click twice to have it activate.  It's almost like the hit area for the next button in group #2 is still active even though the image button is hidden.  (It almost acts like a dead spot that goes away once you click it)
    Is there any known issue with elements in groups not being hidden 100% and causing overlapping issues with other elements on the slide?

    Hello and welcome on the forum,
    Which version (exact number please) do you use?
    Is it possible to insert a screenshot of the timeline with all groups expanded? If two (shape) buttons are in exact the same location at the same time, one of them can be hidden to have the other one active. I have been trying this out extensively, so I'm a bit puzzled about your problem.
    Lilybiri

  • AcroForm with Image button from LiveCycle

    I read Ted Padova's article at:
    http://www.acrobatusers.com/blogs/tedpadova/enabling-adobe-reader-users-options-importing- images-forms
    and was thrilled to find out that it is possible for Reader users to import images. However, I’ve run into some problems.
    I have a form originally laid out in InDesign, with form fields added in Acrobat. Then I opened the form in LiveCycle and added the Image button, just as Ted instructed. This worked fine – Except:
    ·         LiveCycle diabled the JavaScript in the form -- I was able to fix this by opening the form again in Acrobat and re-doing the appAlert JavaScript.
    ·         A button that opens the Search pane no longer works -- I need help with this -- Grateful for any ideas!
    ·         A set of radio buttons no longer look the same, although they still work -- I can live with this if I have to.
    Is there a way to keep all the fields and JavaScript intact from the AcroForm, and still add the Image button in LiveCycle?
    I’m very familiar with Acrobat, but not with LiveCycle. I’m backed into a corner with my client who expects me to do all this.

    You can't mix Acrobat Forms with LiveCycle forms.

  • Image button URL

    Hi,
    I would like to know how to define an image button in Web Dynpro which link to a URL.
    Thanks !
    Patrick Cheung

    Hi Patrick,
    Try and use this code for the image button:
    IWDToolBarLinkToAction linkdown = (IWDToolBarLinkToAction)view.createElement(IWDToolBarLinkToAction.class,null);
              linkdown.setImageSource("//image_path");
              linkdown.setTooltip("set the Tool tip!!");
              IWDAction linkclickdown = wdThis.wdCreateAction(IPrivatePlugFDTView.WDActionEventHandler.MAP_ACTION,"");
              linkdown.setOnAction(linkclickdown);
    After this add this <b>linkdown</b> variable to the table object. [ie: tb.addToolBarItem(linkdown)], like this, where tb =
    IWDToolBar tb  = (IWDToolBar)view.createElement(IWDToolBar.class,null);
    I hope this helps you and solves your problem
    Regards
    Pravesh
    PS: Please consider rewarding points if helpful and solved.

  • Image refresh problem

    hi, i have an image inside an iframe that i'm trying to
    change upon the click of a button. i use the following code:
    <SCRIPT language="JavaScript" type="text/javascript">
    function swapImage(intImage){
    var
    imgs=["images/pic0.jpg","images/pic1.jpg","images/pic2.jpg","images/pic3.jpg","images/pic 4.jpg",
    "images/pic5.jpg"];
    parent.frames['cont'].document.getElementById('mgmnt_pic').src =
    imgs[intImage];
    alert(parent.frames['cont'].document.getElementById('mgmnt_pic').src)
    </SCRIPT>
    then in body:
    <p><a href="javascript:; "
    onclick="frames['cont'].swapImage(0);">Management
    Team</a></p>
    i know from the alert that it is changing the source of my
    image, the problem is that the image itself is not changing at all.
    has anyone experienced this before? what can i do to fix it?

    Hi,
    chk the link
    http://javascript.internet.com/miscellaneous/random-image.html
    shanthi

  • All Images Finder problem

    Hi,
    I can't figure this out. But then again, I'm fairly new to Mac (June 2009), so maybe this is a simple problem.
    In the finder to the bottom left under the "search for" heading it has several buttons: All Images, All Movies, and All Documents.
    Every time I click the "All Images" button, nothing happens. At all. I'm the only person who uses this computer, so there aren't other profiles in my system.
    Does anyone have any advice about how to fix this problem? There's a picture I'm looking for and I can't remember the file name or type. Thanks!

    So it does. I missed it because I always have Finder windows open. That said, the +search for+ thingy is a sidebar option and has no relationship to the Dock—it's related to Finder windows.
    For the OP, once you resolve your issue, see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Anatomy of a Mac,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • No "Load Images" button in Mail

    Before I upgraded to Mavericks, I always used to see a "Load Images" button above email messages. I don't see that anymore and some of my emails contain a question mark in place of the image. I've looked everywhere to try to find a solution but no luck.

    I always used to see a "Load Images" button above email messages.
    You would only see that if you set a preference not to display images in HTML messages automatically. If you haven't set that preference, but the images are still not loaded, then it's because of a problem on the web server or in the network.

  • Getting mouse click coordinates with image button

    I'm using ADF Rich Client components in JDeveloper 11g Technology preview.
    I have to get the mouse click coordinates with an image button. In the page I put something like this:
    <af:commandButton text="commandButton1" icon="ambiente.jpg"
    actionListener="#{prova.listen}" action="#{prova.esegui}" />
    In the listener method of the managed bean I try to get the coordinates with this code:
    public void listen(ActionEvent e)
    FacesContext context = FacesContext.getCurrentInstance();
    String clientId = e.getComponent().getClientId(context);
    Map requestParams =
    context.getExternalContext().getRequestParameterMap();
    int x =
    new Integer((String) requestParams.get(clientId + ".x")).intValue();
    int y =
    new Integer((String) requestParams.get(clientId + ".y")).intValue();
    but it doesn't work. It seems that there aren't in the request the coordinates of the image point clicked. Is it true? How can I do that with ADF ?

    Hi,
    the mouse position is not part of the request parameters send. You will have to use client side JavaScript for this
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <f:verbatim>
    <![CDATA[
    <script>
    function handleMouseCoordinates(event) {      
    alert("x: "+event.getPageX()+" y: "+event.getPageY());
    </script>
    ]]>
    </f:verbatim>
    <af:form>
    <af:commandButton text="My Click Button" icon="/images/jdev_cup.gif">
    <af:clientListener method="handleMouseCoordinates" type="click"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Frank

  • Add Image button on Gumtree unresponsive.

    Whenever I try to post an ad on gumtree, I go to click on the "Add Image" Button and all it does is take me back up to the top of the screen. Doesn't refresh page or anything, just takes me back to top of page.
    Any ideas? It's frustrating having to use a different browser just for that.

    I assume you already tried making an exception for the site in Adblock Plus... since the problem relates to ads...
    ''Did this feature ever work in Firefox?'' If so, you could try clearing your Firefox cache and your saved cookies for the site. (Steps for that are listed below.)
    ''If that button never worked in Firefox,'' have you considered possible interference by add-ons? You could test whether Firefox can work with the site when your extensions are deactivated by opening the site in Firefox's Safe Mode. (Steps for that are listed below.)
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?
    Trying Firefox's Safe Mode is a standard diagnostic technique to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • How to resize or scale a group/ image button on flash catalyst 5.5

    i have problems resize or scale images group or images button to interaction with others states, when try to resize i recibe this warning:
    Non-Resizable Content This content is fixed size......

    Hello,
    I can't or don't know how to make a scalable custom button   I've spent much time in google but I didn't find solution
    Please see FXP file: http://cl.ly/3P2p3q1Q3Q1x440G0A1Y
    Please help!!!!!
    Thanks a lot!
    Ivan

Maybe you are looking for

  • Adobe Acrobat Pro 9 causes MS Office 2003 to freeze & mouse to malfunction - HELP!

    After installing Acrobat 9.0 Professional on a 64-bit Windows Vista computer running Microsoft Office 2003 the following issues arose (note these issues were solved be uninstalling Acrobat). Does anyone have a fix? 1. Microsoft Internet Explorer stop

  • Adobe photoshop Cs6 64bit version

    I can not install Adobe Photoshop Cs6 beta 64 bit version. See error summery: Please let me know how can I solve this issue? Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050, DW062 ... -------

  • Jar file importing

    Hi, i have 2 jar file's, in side jar files same package name and same class but method name are different. for example Test1.jar Test2.jar in side jar file package structure is "dim.in.test" class name is "GetInformation" i am importing the this two

  • TS1389 where is the itunes settings in the store?

    I need authorization on my laptop to download my music and can not find the settings in store...any help?!?!

  • HT4436 Need help setting up iCloud email

    I am trying to set up my iCloud email account. I follow the onscreen prompts. After entering my email name and clicking on the "done" button, I keep getting an error message saying "having problems opening email, try again". I am connected to wi-fi.