Get Form Image Control Clicked Position : Form Image « JSP « Java Tutorial






index.jsp

<HTML>
    <HEAD>
        <TITLE>Using Image Controls</TITLE>
    </HEAD>
 
    <BODY>
        <H1>Using Image Controls</H1>
            <FORM ACTION="basic.jsp" METHOD="POST">
                <INPUT TYPE="IMAGE" NAME="images" SRC="yourfile.gif">
            </FORM>
    </BODY>
</HTML>

basic.jsp

<HTML>
    <HEAD>
        <TITLE>Reading Image Controls</TITLE>
    </HEAD>

    <BODY>
        <H1>Reading Image Controls</H1>
        You clicked the image at (<%=request.getParameter("images.x")%>,
        <%=request.getParameter("images.y")%>).
    </BODY>
</HTML>
  Download:  GetFormImageControlClickedPosition.zip( 1 k)








23.20.Form Image
23.20.1.Get Form Image Control Clicked Position
23.20.2.Forward Page Based On Image Clicked Position