Jean:

for supplying multiple values to listbox in JSP example take a look at
http://localhost:8080/examples/jsp/error/error.html

Regards,

-Martin

 

>From: Jean-Max Reymond <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: good location for >Date: Tue, 17 Sep 2002 15:49:50 +0200
>MIME-Version: 1.0
>Received: from mc2-f35.law16.hotmail.com ([65.54.237.42]) by mc2-s18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Tue, 17 Sep 2002 06:55:11 -0700
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc2-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Tue, 17 Sep 2002 06:51:47 -0700
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 1F3E321752; Tue, 17 Sep 2002 07:48:39 -0600 (MDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2730587 for [EMAIL PROTECTED]; Tue, 17 Sep 2002 07:46:44 -0600
>Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 3991C482C for <[EMAIL PROTECTED]>; Tue, 17 Sep 2002 07:46:40 -0600 (MDT)
>Received: from free.fr (nice-1-a7-62-147-77-61.dial.proxad.net [62.147.77.61]) by postfix2-1.free.fr (Postfix) with ESMTP id E7838108 for <[EMAIL PROTECTED]>; Tue, 17 Sep 2002 15:50:57 +0200 (CEST)
>Delivered-To: [EMAIL PROTECTED]
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826
>X-Accept-Language: fr-fr, en-us, en
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Organization: home, sweet home
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 17 Sep 2002 13:51:48.0681 (UTC) FILETIME=[5E461B90:01C25E51]
>
>I have a bean and a jsp and I can notice was the location of the tag
> is very important.
>if the tag is just before the , it is not correct for the
>display of the value in the select box.
>if the tag is before (I suppose), it is OK.
>So, what is the rule to know where is the correct location ?
>Note: I don't use the property="*" because I produce dynamically the
>input forms.
>
>package jspsubmit;
>public class Jsp3Bean {
> private String sample = "Start value";
> //Access sample property
> public String getSample() {
> return sample;
> }
> //Access sample property
> public void setSample(String newValue) {
> if (newValue!=null) {
> sample = newValue;
> }
> }
>}
>
>and a jsp also very simple
>
>
>
>
>
>>class="jspsubmit.Jsp1Bean" />
><%--
>HERE, the jsp:setProperty is correct
>--%<