File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes image click action ..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "image click action ....." Watch "image click action ....." New topic

image click action .....

smitha mano
Ranch Hand

Joined: Sep 26, 2005
Posts: 70
image click action ??
in my struts jsp page i have an image like this

<html:img page="/images/${}" />

when i click on the image it will go the another page.
how to do this?
please help me.........
sgp sundar

Joined: Oct 08, 2005
Posts: 3
use html:img with in html:link


<html:link href="add.jsp">
<html:img src="E:\Design\arrow.jpg"></html:img></html:link>

if u click this arrow image the control will forward to add.jsp
[ October 24, 2005: Message edited by: sgp sundar ]
smitha mano
Ranch Hand

Joined: Sep 26, 2005
Posts: 70
in my struts jsp page,
have one listDetails.jsp
in this jsp page have one link like this


above tests ReadMe is a link of struts html like
<html:link action="${view.historyCode}">ReadMe>></html:link>
when i click on the ReadMe link its go another page
here in this page passing "action with no actin class"
<action path="/Humayun" forward="page.Humayun" />
here Humayun.jsp is a static page.
in below area, have one image .
the image is war.jpg. this war.jpg is from war table.
when i click on the image it will display all details from war of war another page warDetails.jsp

how to solve this problem
I agree. Here's the link:
subject: image click action .....
jQuery in Action, 3rd edition