File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to show image link using display tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to show image link using display tag" Watch "How to show image link using display tag" New topic
Author

How to show image link using display tag

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
Hi All,

Can somebody give me the code to show a image link(showing image in a link) in display tag.


Thanks in Advance,
Kousik
Purohit Punam
Greenhorn

Joined: Oct 06, 2008
Posts: 13
please post some detailed question. you want image to be displayed as link?, or in a text link you want to put image?


Thanks,
Purohit Punam
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
The first one.

I want the image to be displayed as a link and clicking the link a javascript function will be called.

Hope it is clear now.
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
Anyway....got the answer.


<display:column href="a.do" title="EDIT" ><html:image src="images/editPen.gif"/></display:column>
 
Consider Paul's rocket mass heater.
 
subject: How to show image link using display tag
 
Similar Threads
Image load on IE is getting problem
Dynamic Image Creation
Writing Image Bytes on Response Stream
Graphical Representaion on the browsers
Displaying images on JSP page