Struts - using html:image for link

I would like to use an image for a link but I am not sure how to do this. Right now I'm using the <html:link> tag and using the action mapping. Can this be done using the <html:image> tag?
Here's an example of what I'm currently doing.
<html:link action="/homePage"><bean:message key="General.button.HomePage"/></html:link>I'm new at java and struts and could definitely use a little help.
Thanks!
bfrmbama

yeah, <html:image> is a form submit button... in HTML, it's this:
<input type="image" name="thename" src="thesrc" value="thevalue" />
<html:link> has onmouseover and onmouseout attributes... so you just put the mouseover script stuff there.

Similar Messages

  • Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Hi,
    I had never heard of someone using the iPhone Number as the ID in the iMessages account in the Mac version.
    i.e without adding an Apple ID
    iMessages does allow iPhone numbers and mine lists mine.
    I would try this.
    Sign Out of the iMessages account and Quit Messages
    On the iPhone in Settings > Messages remove the Apple ID
    Set the iPhone to Airplane mode for a few minutes (to break with the  Server)
    On starting the phone up again check the iPhone Number  is ticked for iMessages.
    If it is add the Apple ID
    On the Mac restart Messages
    Add the Apple ID
    At this point you should get a pop up or two saying the iPhone is using the Number and Apple ID.
    Accept these and they get added to the Receive At list and Send From drop down.
    9:41 pm      Monday; October 28, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to use background image for a page that work in Netscape..???

    Hi there
    Is there anyway around to use background image for a portal page that works well with netscape.
    As I have used that but in coming in Netscape.
    thanks
    Rakesh

    1) You post questions in the wrong forum. (As you title says this is a Swing question).
    2) Not once in your last 10 postings have you ever bothered to reply to a posting to thank people for the help you have received.
    I seriously doubt you well ever get answers in the future.

  • Using custom images for radiobuttons

    Hi
    I'm looking for help with creating a radio buttons with external images (fetched from XML/Javascript file) cause, I don't want to use standard looking radio buttons from components. I wish to use different images for each state of the button.
    Any one can help me with some ideas how to change look of then radio buttons?

    To manage homegrown radiobuttons as a group, you would incorporate an event listener function that manages the group.  That function would know which radio button was selected via the event target and would act to reset all of the other radios while setting the one selected.  I don't have a specific AS3 example, but below is a rough draft of the function/scenario.  In this, I am using 3 radio buttons that have numerically differentiated instance names (rb1, rb2, rb3)...
    var selectedRadio:MovieClip;
    function manageRadios(evt:MouseEvent){
         // first reset all radios
         for(var i:uint = 1; i<4; i++){
              this["rb"+String(i)].gotoAndStop(1);  // frame displaying deselected state
         selectedRadio = MovieClip(evt.currentTarget);
         selectedRadio.gotoAndStop(2);           // frame displaying selected state
         trace(selectedRadio.name);
    rb1.addEventListener(MouseEvent.CLICK, manageRadios);
    rb2.addEventListener(MouseEvent.CLICK, manageRadios);
    rb3.addEventListener(MouseEvent.CLICK, manageRadios);
    In this case, each radio button is simply a two framed movieclip, with stops for each frame... frame 1 displays the unselected state, and frame 2 displays the selected state.
    For the code shown, I include an external variable (selectedRadio) that can be used to target information related to the selected Radio button.  So if you assigned each radio with a variable (let's say you name it varName) that would hold data to be used in the processing elsewhere, you can get it using: selectedRadio.varName

  • Passing values to action form in struts using html:link tag in struts

    hi
    As we can post values to action form bean in struts using a <html:text> tag in side a form.
    Can the same be achieved by using a html:link attribute.
    If not then how can this be achieved (i.e. posting a form on click of a link and populating action form bean property for the same).
    thanx in advance.

    Crosspost:
    http://forum.java.sun.com/thread.jspa?threadID=5244035&tstart=0

  • How to use HTML Video for iPad in iWeb

    I agree with all the advantages of HTML Video. How do you use html video on your iweb site?
    I want my iWeb site video to be viewable on iPads.
    I have learned the technique to use the HTML Snippet tool in iWeb to successfully post Flash video. I created all of my animations using Kenote's keyframe ability and have exported them to Quicktime and then have converted them into flash with Vertical Moon's Video to SWF. Then simply upload the SWF file to a folder on your idisk, then use the Flash Video insert HTML Snippet and insert the idisk url of the SWF file and you are done. What is the technique for HTML Video?
    I have found some HTML video encoders, here are the links:
    http://www.projekktor.com/ the technique is not clear to me and appears complicated.
    http://www.brightcove.com/en/ this one is way too expensive at $99 a month.
    http://jilion.com/sublime/video this one looks great but is not yet available and I am guessing it is a converter that will make your iMovie Quicktime into HTML Video.
    I have all of the i-Apps and Final Cut Express (2 revs out of date). Can I get the proper HTML video file from these programs, unless I am missing something I don't think so.
    Most people do not believe I made my site completely with Keynote and iWeb but here it is. http//www.falcon-pacific.com
    Thank You Very Much for considering my question. I will put the results on my iWeb site and the exact procedure and acknowledge all the sources of the solution.

    I want my iWeb site video to be viewable on iPads.
    Your videos ARE viewable on a iPad. No need for explicit HTML video coding.
    If you export your movies to iPhone that's all there is to do. You can do it in QT Pro/iMovie
    And HTML Video is a HTML code, not the movie itself :
    <video width="480" height="270" src="movie.m4v" controls></video>
    I use the iPad simulator in the SDK :
    http://developer.apple.com/ipad/sdk/
    Here's the result :
    http://ipad.dailynews.webege.com
    My blog : [html5 video|http://www.wyodor.net/blog/archives/2009/06/entry_181.html]
    And some links in my post in this topic : [HTML 5 in IWEB|http://discussions.apple.com/thread.jspa?threadID=2404927&tstart=30]

  • [CS3 JS SDK] Possible to Use HTTP URLs for Links?

    I am attempting to use JavaScript to implement a connector from CS3 (InDesign/InCopy in my case) to our content management system. Our CMS provides an HTTP-based API. By using the HttpConnection object (from the Bridge code, see posts on "httpwebaccess library") I can access our repository using HTTP URLs and, for example, get an InDesign document or INX file (and the UI support in CS3 scripting makes it possible for me to build all the UI components I need without having to write a true plugin).
    However, what I *can't* seem to do is create Link objects that use a URL, rather than a File, to access resources.
    My goal is to be able to store in our repository InDesign documents that use URLs to other resources in the repository for links (e.g., to graphics and InCopy articles).
    However, as far as I can tell from the scripting documentation and my own experiments, the URL property on Link is read-only in JavaScript (even though the scripting API HTML indicates it's a read/write property) and Link instances can only be constructed using File objects.
    My question: have I missed some trick in the scripting API (or elsewhere) that would allow me to create links that use URLs instead of files (and having done so would InDesign resolve those URLs?)? Our repository does support WebDAV, so that might be an option, but it would depend on mounting WebDAV services in consistent places on client machines, which is dicey at best, given the weak nature of the WebDAV clients on both Windows and OS X).
    Or are my only options to either copy linked resources to the client's local file system (or a shared network drive) or implement a plugin that implements my desired behavior for links?
    And if the answer is a plugin, will that even work?
    This is in the context of CS3. Has the Link mechanism changed at all in CS4 such that I could do what I want in CS4 where I cannot in CS3?
    Thanks,
    Eliot

    Hi,
    It is not possible to use HTTP URLS in CS3. You will have to create a plug-in to use Custom Data Links.
    I think it is possible to use HTTP URLs in CS4 as per the User Guide.
    Regards,
    Anderson

  • How to implement OData based BASIC Authentication using HTML, JavaScript for Mobile Apps using Apache Cordova/PhoneGap and datajs-1.1.1.js library

    Hello,
    I have an issue with OData based BASIC authentication for iOS App created using HTML, JavaScript, SAP UI5, OData and Apache Cordova/PhoneGap.
    Please check the post here http://scn.sap.com/thread/3527245
    Request you to kindly reply on the above given link.
    Thanks and Regards,
    Suraj Kumar

    Hello Prathik,
    The code which I am using for OData based BASIC Authentication, for my Mobile App is as below.
       var onSuccess = function(data) {
       alert("We are Through"); //Just to check that the OData request was sucessful
       var onError = function(err) {
       switch(err.response.statusCode) {  
       case 403 : {
       window.alert("Error Code - 403, Service unreachable ");
       break;
       case 401 : {
       window.alert("The credentials are incorrect or missing!");
       break;  
    // dataUserName and dataPassword are the two variables, in which I am storing my Username and Password, respectively.
       var connectionRequest = {
       requestUri: "ODATA SERVICE URL GOES HERE/",
       headers: { Authorization : 'Basic ' + Base64.encode(dataUsername + ":" + dataPassword) },
       method: "POST"
       OData.request( connectionRequest, onSuccess, onError);

  • How to use Remote key for linking two repository

    Hi,
    I have a challenge like not to repeate common tables like Company_code,Currency,Vendor name,customer name across all repositories.
    Is there any way I can use 'Remote key' to link different repository.
    I can create a Main table with all common attributes required across the repository but want to know how I can connect it to different repository.
    For example to get company-code in Vendor table , how can I link Company-code main table(customized) in another repository may be thru 'Remote key'.
    Going thru java api route is not prefffered for the sake of simple solution.
    Appreciate your help in providing any idea and detail steps for the process.
    -regards, Reo

    could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
    same error like:
    http://www.oracle-base.com/articles/9i/external-tables-9i.php
    if the load files have not been saved in the appropriate directory the following result will be displayed.
    SQL> SELECT *
      2  FROM   countries_ext
      3  ORDER BY country_name;
    SELECT *
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file Countries1.txt in EXT_TABLES not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32

  • RH Automatically Changing HTML Code for Links

    For some reason, RH is doing something to the links I create. In my stylesheet, I have the following code for links:
    a {
        color: #054abc;
        cursor: pointer;
    a:hover {
        color: #336699;
        text-decoration: none;
    a:active {
        color: #333333;
    When I create a link, the HTML code looks like this *at first*:
    <a href="Development_Plan.htm">Development Plan</a>
    But then, after I save the file and switch to HTML view, the code looks like this:
    <a href=" Development_Plan.htm" style="color: #0000ff; text-decoration: underline; ">Transcript</a>
    I am not doing anything other than saving the file, and that apparently causes RH to automatically add the style (color and text-decoration). Why is RH adding that? It's causing my links not to change color when you hover over them.
    How can I make RH stop doing that, so my links display as defined in the stylesheet?

    Hi,
    This is strange behaviour. How exactly do you create a hyperlink? I have seen this behaviour only with links that are empty or contain a single space.
    As a workaround, in your css, add the !important declaration to your hover styles:
    a:hover
    Although this isn't an elegant solution, it will overwrite the inline styling of the link and thus change colour on hover.
    Greet,
    Willam

  • Can I use an image as link to a specific page?

    Building a chapter opening spread that includes a number of images, each from one section in that chapter. Want to use the images to navigate directly to that section by tapping on it, if possible. I'm guessing I can create a text box ontop of the photo that then hot links to a bookmark on the target page, but would prefer to simply be able to hotlink images. Any other ideas? Thanks.

    Hey Juan,
    If you get to the point in my instructions where you have the text selected and you Enable as hyperlink, you will need to set the "Link To" option to bookmark or figure and then choose which bookmark or figure you wish to link to. You may not have any of these items defined yet. If that's the case nothing will show in the list.
    If you place an image on another page, select it, go to the Widget tab in the Inspector and select the Title option. You can then assign a label to the image (Diagram, Figure, Image, etc). Once you have a label assigned to your image, it will apear in the list of linkable objects when you set your hyperlink.
    Good luck.

  • Don't want new tiff files saved in my catologue if I'm only using the image for a composite.

    When editing in Photoshop CS4 from LR3, the new tif will not appear in the catalogue unless I save it in PS. In LR4 it saves a new tiff in my catalogue regardless if I save the edited image in PS or not. I have a cloud library I use often and do not want new files saved in my LR catologue if I'm only using the opened image for compositing. Can anyone help me figure out how to change the workflow to be like LR3?

    -Agfaclack- wrote:
    i think adobe should support new cameras for older CS versions too.
    in the end PS is expensive enough to justifie a better support.
    How far back would you go? One version? Three? Where should the line be drawn? Adobe draws the line at the currently shipping version...it's now CS5 and shortly it will be CS6.
    Even if Adobe were to do this, you do realize that trying to put new plug-ins into older software is really tough. For example on the Mac, Photoshop CS5 requires that the plug-in be written in Apple's Cocoa API. Camera Raw 5 required a major update to be able to run in Cocoa...retrofitting Camera Raw 5 to run in a PPC platform (supported by CS3/CS4 but not supported by CS5) would be difficult–a lot of work for zero return. As a result of the engineering challenges of backwards compatibility Adobe has the policy of only updating currently shipping software to current customers. Truth be told, if you don't have the most recent version, you are not a current customer...you are a former customer. Having Adobe spend R&D engineering backwards compatibility to support former customers would take resources away from supporting current customers. As a current customer, I wouldn't like that.
    But it's all a moot point because I don't see any evidence that Adobe is going to change this policy for backwards compatibility. In fact, going forward, Adobe is already announced the change to Photoshop upgrade rules allowing only the most recent version to be upgraded to the new version. Because of the reaction that only CS5/5.5 could upgrade to CS6, Adobe blinked and now has given a grace period till the end of 2012 for CS3 & CS4 users to upgrade to CS6.
    Again many people don't like this, but as a pro user of Photoshop, I always upgrade anyway so it has no impact on me. Yes, it will bite some people and I can have sympathy, but again, you always have the free DNG Converter to use in the case you need new camera support. And hey, the new cameras come with software to process their raw files, right?

  • Problem using an image for a background

    Hi,
    My environment is Crystal Report 2008 SP2
    I am adding an image for a table header background in my report. The image is of type png.
    I use insert picture when I add it to the report. Up to there everything works fine.
    My problem happens when I try to draw lines on top of the image.
    All the lines that I draw stay underneath the image. Even though I move the image to the back and move the lines to the top.
    Any idea why?
    Is there something that I should do differently if I want to use an image as background?
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to use html pages as links on portal

    Hi,
    I have uploaded some html files in KM.
    Now i want to create an iview and add these uploaded html files as hyperlinks in that iview.
    Can i know the solution for these?
    Awaiting for your respose.
    Regards,
    Raju

    Hi buddy,
    from your initial question, i guess you need to display a page which has multiple links to various pages which you have uploaded in KM.
    So what you can do is, create another html file which link in it.
    <a href = "some_html_file.html">Page1</a>
    <a href = "some_html_file.html">Page2</a>
    <a href = "some_html_file.html">Page3</a>
    <a href = "some_html_file.html">Page4</a>
    Some_html_file.html should point to the corrrect file(s) in the KM directory. Now save the new file which you have created (the one with links) in the KM directory and create a KM Document iView for this page and assign it to a role, and assign the role to the user and test.
    Thanks,
    GLM

  • Using custom images for website?

    Hi, I'm totally new to this Dreamweaver stuff so I'm sorry if this is very easy, but I have created an image in Illustrator that I would now like to use as a website. The image is this:
    I have a background, and a menu bar and I'm trying to figure out how to use it as a background image. I'm looking to create a one column website that is liquid and has a little content on each page.
    Thanks in advance!

    Of course, this CSS will only work if the background image is named "background.png", and it is in the same location as the page you are making.  Perhaps it would be more helpful to do it this way -
    body {
        margin: 0;
        padding: 0;
        background-image: url(the_path_to_your_image);
        background-repeat:no-repeat;
    This will place the background image on the page aligned with the upper, left-hand corner of the browser viewport.  Now you will have to build the page's infrastructure so that the content is properly aligned with the background image.  You may have problems doing this, as this approach is not normally one that is successful (i.e., designing a single background image containing all of your layout elements and then just trying to align content to it).  Think about what will happen with that approach if someone makes their browser display text larger or smaller than you have used while you are aligning things!
    A better approach is to make the background an image (if you use an image at all) that can tile to fill the screen no matter how large the screen is.  Then build the page as a series of stacked rectangular containers, where each container is parent to a single part of the page's layout (like masthead, menu, content, footer, credit for example) and style each container with its own background image/color as needed.  That way, if one container expands because text is resized, the whole arrangement can flex vertically to accommodate it.  This approach will require that you understand enough about CSS to know that using absolute positioning is NOT the right way to go about making such a page.
    If you are not so friendly with CSS, then I suggest you delay your beginning on this site until you have acquired some additional familiarity with it.  A great way to get that is to read the "Missing Manual" volume for your version of DW.  The book is published by O'Reilly press and is authored by David McFarland.

Maybe you are looking for

  • Photoshop CS5: border in full screen mode

    I ran this by in the User forums. Now I think I should file it as a bug. I use full screen mode in PS. It's important to me,especially when I take screenshots. Photoshop CS5 shows a border in full screen. Something CS4 or even Bridge CS5 doesn't do.

  • Netlet Session timeout

    Does anybody in this forum have problem with the netlet session timeout? We use Netlet to run Citrix applications behind the portal. The Netlet session gets killed at any moment in the range of 6 hours to 40 hours in the production environment. We us

  • JNDI Administration in Weblogic 10.3

    This is my code: InitialContext initialContext = new InitialContext(); Context context = (Context) initialContext.lookup("java:comp/env"); bootstrapFlag = (Boolean) context.lookup("bootStrapFlag"); Could anyone guide me how to configure the "bootStra

  • TS1394 After installing maverick, microsoft entourage fails to load due to "PowerPC applications no longer supported."  Now what do I do to get my email back ?

    After installing OS X 10.9.1 maverick, my email program, microsoft entourage, fails to load because "PowerPC" no longer supported.  What do I do now ?

  • Aperture Library_original

    I recently upgraded to Aperture 3 and have had a number of issues pop up during the upgrade process. After installing Aperture 3 from the disc, I opened up the program before checking for any software updates (my neighbor tells me this was a bad idea