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

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

Struts Image tag!

Hi experts, how to change this html image tag:

<td background="images/Line_Vertical_dotted.gif" width="1"></td>

into a struts image tag??

Thanks..
0
KirtipurItagol
Asked:
KirtipurItagol
1 Solution
 
Manikandan ThiagarajanSenior consultantCommented:
0
 
KirtipurItagolAuthor Commented:
very good article but doesn't solve my question though...
i've an html image tag like this :

<IMG height=4 src="image/spacer">
I can use a struts tag and change the above into:
<html:img height=4 srcKey="image.spacer"/>

There's no problem with that.
But here's another scenario:
here's my html image tag-----><td  background="images/Line_Vertical_dotted.gif" width="1"></td>
I want to change that into <html:img ...................../>
Any clue?

0
 
CEHJCommented:
>>
I want to change that into <html:img ...................../>
Any clue?
>>

Do you mean you no longer want the td background to be the image?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
KirtipurItagolAuthor Commented:
I want the functionality to be unchanged ....thanks
0
 
CEHJCommented:
You can use a style tag and css, which you should anyway in fact, as presentation should not be conflated with html tags
0
 
KirtipurItagolAuthor Commented:
May be I'm too confusing here.....So, there's no substitution for background attribute using struts tag?? forexample, i can use srcKey for src....
0
 
TrekkyLeaperCommented:
The html:img tag always renders an HTML <img> tag. The tag that you'd be using would have to be html:td which does not exist. You will just have to put the absolute or relative path to the image in the <td> tag or, as was already suggested, use a style sheet. I'd go with the style.
0
 
KirtipurItagolAuthor Commented:
Or else I can just leave it like that, correct??
0
 
CEHJCommented:
It's better not to leave it like that, for the reason i gave
0
 
KirtipurItagolAuthor Commented:
basically the html guy screw the whole html page....and now he doesn't exist in the company...and I dont' have much skill on CSS....I want to replace all the html tags into struts tags...CEHJ can you tell me the right way to initiate??
thanks..
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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