Use <html:options> tag.

-----Original Message-----
From: vineesh . kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 12:43 PM
To: [EMAIL PROTECTED]
Subject: Accessing collections in jsp


 
To pass a range of values i used
in PassAction.java
        Vector v=null;
          v.add("somestring");
           v.add("someotherstring");

request.setAttribute("name",v);

and in the jsp i tried to access it like

         <logic:iterate id="mylist" name="list">
  Element Value: <bean:write name="mylist" /><br /> </logic:iterate>

but i got an error saying

javax.servlet.ServletException: Cannot find bean list in scope request

anyone know wat is this problem
    my struts-config action mapping is
          

<action
                path="/accountslisting"
                type="com.c2rmnet.struts.action.AccountslistAction"
                validate="false">
            <forward name="success" path="/form/AccountListing.jsp" />
            <forward name="invalidsession" path="/form/InvalidSession.jsp" />
        </action>

Thanks
   vinu




Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to