[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

Struts Html:Image Tags

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.

Ramani
0
ramani081399
Asked:
ramani081399
1 Solution
 
somasekharCommented:
Hi

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

somasekhar
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now