Hi there ( if there is still anybody :-)), well, what the hell is going wrong with my <select>-value. Shame on me but i don't get it.
/////////////////////////////////////////////////////////////////////// out.println("<center>" +"<select name=\"proField\" " +"<option><---------------------------------------------------></option>"); for(i = 1; i<length;i=i+2) { out.println("<option value=\""+vec.get(i)+"\">"+vec.get(i)+"</option>"); } out.println("</select>"); i=0; out.print("<br><br><br><br><br><br>"+ "<table>"+ "<colgroup><col><col width=\"0%\" span=\"4\"></colgroup>"+ "<tr>"+ "<td>"+ "<FORM ACTION = \"http://10.48.229.45/examples/servlet/Select\" METHOD = \"GET\">"+ "<input type = \"submit\" name=\"edit\" value = \" edit\" height=\"20\" width=\"10\">"+ "<input type=\"hidden\" name=\"alias\" value=\""+alias+"\" >"); "........................................................................................................" out.println("</form>"+ "</td>"+ "<td>"+ ........ /////////////////////////////////////////////////////////////////////////////////////////////////////// in line"..............................................................................................." i would place a hidden textfield with the content of the selected item in "proField". Then I transfer data by triggering the button to a Class(here:Selected) that receives data in doGet(...) Method. So far so good. But if I want to have the selected Item I got problems. getParameterValues("proField") should return a String []. Ok. But the Array is null :-( ? I got a Method for it : private String getFile() { String[] pfad = getParameterValues("proField" ); return pfad[0]; } and i call it like that : "<ínput type=\"hidden\" name=\"file\" value=\""+getFile()+"\">"); ( this is the hidden Textfield with the content of the returned String.... There's errormessage : C:\ServletDevel\WebExcel\CheckLoginMod.java:127: cannot resolve symbol symbol : method getParameterValues (java.lang.String) location: class CheckLoginMod String[] pfad = getParameterValues("proField" ); ^ Please Help. Thx Bastian "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]> schrieb am 17.09.03 07:53:25: > > Hi Frnd, > > U can get the value in precedding servlet by using > getParameterValues("proField" ) and it will return String[]. check it out. > > Hope this will be right if I m getting ur problem correctly. > > Shekhar > ----- Original Message ----- > From: "Fuchur1476 huuil" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 16, 2003 5:42 PM > Subject: how to pipe values from select-Tag ? > > > > Shalom, > > > > first let me introduce myself to You. My Name is Bastian and i come from > germany (europe). > > I'm studying computer sciences. > > > > I'm working with servlets. > > Well, the problem i have is that I want to have a <select> from which the > user can select an item by double clicking the item. > > > > The solution which already worked was without an select Tag . I worked > with Buttons and forms but this is to complicated for users. They had to do > to many clicks to go through. > > > > Now I imagine myself a select List where users have to doubleclick an item > to go. > > > > > > > > > > here's my sourcecode : > > > //////////////////////////////////////////////////////////////////////////// > //////////////////////////////////////// > > /** SelectField filled with projectnames*/ > > > //////////////////////////////////////////////////////////////////////////// > //////////////////////////////////////////// > > out.println("<form name=\"liste\" >"); > > out.println("<center>" > > +"<select name=\"proField\" size=\"5\">" > > > +"<option><---------------------------------------------------></option>"); > > for(i = 1; i<length;i=i+2) > > { > > out.println("<option > value=\""+vec.get(i)+"\">"+vec.get(i)+"</option>"); > > } > > out.println("</select>"); > > i=0; > > > //////////////////////////////////////////////////////////////////////////// > /////////////////////////////////////////// > > > > At the moment I#m working with an doGet Method in the proceeding Servlet. > > > > I would like the preoceeding class to get the "value".... How to do that ? > > > > Hoping you understand what's my problem :-) > > > > THX > > Bastian > > > > > > > ____________________________________________________________________________ > __ > > Zwei Mal Platz 1 mit dem jeweils besten Testergebnis! WEB.DE FreeMail > > und WEB.DE Club bei Stiftung Warentest! http://f.web.de/?mc=021183 > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003 > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ______________________________________________________________________________ Die Besten ihrer Klasse! WEB.DE FreeMail (1,7) und WEB.DE Club (1,9) - bei der Stiftung Warentest - ein Doppelsieg! http://f.web.de/?mc=021184 ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html