From: James A. <the...@ya...> - 2003-08-06 16:54:34
|
I am having problems getting certain form elements. I can't get HtmlForm or HtmlInput by the name attribute. If I do something like this: final HtmlForm form = (HtmlForm)l.get(l.size() -1); HtmlInput ip = null; ArrayList al = new ArrayList(form.getAllSubmittableElements()); for(int i = 0; i < al.size(); i++) { ip = (HtmlInput)al.get(i); System.out.println("|"+ip.getNameAttribute()+"|"); } I get output like this: || || || The form I'm trying to get and eventually submit looks like this: <form name="signonForm" method="POST" action="/keas/profile/signon.do;jsessionid=3D51678DB56D4A16C867DA7DEBA"> <table border="0" cellspacing="10" cellpadding="0" width="60%" summary=""> <tr><td rowspan="5" width="20%"> </td> <td colspan="2" align="left"></td></tr> <tr><td width="30%"><span class="title" style="color:#333333;"><label for="eid">eID</label></span></td> <td width="50%" align="right"><input type="text" name="eid" maxlength="50" size="22" value="" class="plain"></td></tr> <tr><td colspan="2" align="left"></td></tr> <tr><td width="30%"><span class="title" style="color:#333333;"><label for="passwd">password</label></span></td> <td width="50%" align="right"><input type="password" name="password" maxlength="50" size="22" value="" class="plain"></td></tr> <tr><td colspan="2" align="right"><input type="image" name="" src="/keas/images/signin-button.gif;jsessionid=3D59178DB56DA16C81867DEBAE9" alt="Sign in" border="0"></td></tr> </table> </form> They all have name attributes, so what's the deal? I had this problem in 1.2.2 as well as 1.2.3 Thuroughly perplexed, - Asher. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |