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..
KirtipurItagolAsked:
Who is Participating?
 
CEHJCommented:
It's better not to leave it like that, for the reason i gave
0
 
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
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
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
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.