is the form encoding the values ? Regent Logon would become Regent%20Logon ? Might be worth considering.
Jaseb -----Original Message----- From: Luc Foisy [mailto:Luc.Foisy@;technical-magic.com] Sent: 12 November 2002 15:44 To: JDJList Subject: [jdjlist] JSP question - FORMs and parameters Or maybe its not, maybe its just my ignorance of what I am using The form: <FORM NAME="loginchoice" METHOD="post" ACTION="logonchoiceprocess.jsp"> <INPUT TYPE="image" ALT="Regent Logon" VALUE="Regent Logon" NAME="logon" SRC="images\regentlogon.jpg" WIDTH="140" HEIGHT="27" ALIGN="top" BORDER="0"> <INPUT TYPE="image" ALT="Member Logon" VALUE="Member Logon" NAME="logon" SRC="images\memberlogon.jpg" WIDTH="140" HEIGHT="27" ALIGN="top" BORDER="0"> </FORM> The action ( yes I could probably handle it through html, but thats not what I want ): <%@page language="java" contentType="text/html; charset=iso-8859-1" %> <% if( request.getParameter("logon") != null ) { if( request.getParameter("logon").equals("Regent Logon") ) { response.sendRedirect("regentlogon.jsp"); return; } else if ( request.getParameter("logon").equals("Member Logon") ) { response.sendRedirect("memberlogon.jsp"); return; } } else { response.sendRedirect("http://www.google.com"); return; } %> Well, I get get forwarded to google. <INPUT TYPE="submit" NAME="logon" VALUE="Regent Logon"> <INPUT TYPE="submit" NAME="logon" VALUE="Member Logon"> will work with the above logonchoiceprocess.jsp I am thinking the image is not submitting in the same way, or jsp engine doesn't process that form type, dunno. Both types do have a NAME and a VALUE, which I thought were the important parameters here.... Anyone have a clue for me? Luc ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________ ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
