It's not a secret anymore!*
The moose likes Struts and the fly likes Appending Dynamic value to src attribute of the html:img tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Appending Dynamic value to src attribute of the html:img tag" Watch "Appending Dynamic value to src attribute of the html:img tag" New topic
Author

Appending Dynamic value to src attribute of the html:img tag

Bhoomika Bathla
Ranch Hand

Joined: Nov 28, 2009
Posts: 40
Hi All,

I need to append some text in the src attribute of the html:img tag.

I have defined the url in the property file as mainpage.url = http://abc.com/

I am using the the url in my jsp as follows :-



I need to append the text with the url as :- http://abc.com/myText

The text is set in the variable in a bean.

How should i append the text to url in jsp using struts tag???

Thanks
Bhoomika
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

your query was answered before, please refer the link http://www.coderanch.com/t/539383/Struts/Placing-pdf-under-WEB-INF


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Appending Dynamic value to src attribute of the html:img tag
 
Similar Threads
quote symbol expected problem
printing images in jsp
making url a variable in meta tag
Regarding "html: img " tag
images not display on Struts forwarding JSP page