can anyone clarify,
if we can focus on an image in struts.
I have problem in using Struts <html:image tag.
my JSP code is as below.
I need to fosus " <html:image property="continue" object when page loads
I.e i need to focus on an image when the page loads.
-----------------------------
%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<title>Test html:multibox Tag</title>
<script>
function fnSubmit(str){
alert(str);
return;
}
</script>
</head>
<body bgcolor="white" >
<html:form action="html-link.do" focus="continue">
<table border="0" width="100%">
<tr>
<th align="center" colspan="4">html image</th>
</tr>
<tr><td>
<html:image property="continue" page="/images/submit1.gif"
border="0" onclick="javascript:fnSubmit('image')" />
</tr></td>
</table>
</html:form>
</body>
</html:html>
raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
|