Struts Html:Image Tags

Posted on 2004-11-30
Last Modified: 2010-04-01
I am using struts html:Image tags in my code. I am doing somthing like this in my jsp page.
<html:modifyImage  indexed="true" diffKey = '<%="addToHoldScopingMeetingList[" + index + "].holdScopingMeetingID"%>'/> <br/>

When I submit this button I need to be able to retrieve the evaluated scriptlet expression. Currently I am not able to and when i do a print statement It simply prints out the string addToHoldScopingMeetingList[" + index + "].holdScopingMeetingID  instead of the value. I getting the diffKey value by doing a request.getParameter("diffKey") and this gives a null instead of evaluating the expression. How can I get to this to work. I need to use html:image tags only.

Any help will be appreciated.

Question by:ramani081399
    1 Comment
    LVL 2

    Accepted Solution


    Write a scriplet on top of it which evaluates the condition. assign the result to a variable and try to assign that to diff key..

    same time i am not sure whether that tag library supports the way you are doing..

    in that case you have to go with not mal image option


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now