You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <Mo...@hclcomnet.co.in> on 2002/09/28 07:46:40 UTC

Options/Selection

Hi,


	<html:select property="applications" multiple="true" size="2" >
	<html:options collection="ReportParameterForm"
property="applicationOptions"/>
	</html:select>

>javax.servlet.ServletException: Cannot find bean under name
ReportParameterForm

ReportParameterForm.java contains -->

	public Collection getApplicationOptions(){
	return applicationOptions;
	}

	public String[] getApplications(){
	return applications;
	}

	public void setApplications( String[] applications ){
		this.applications = applications;
	}

The first time before the action associated with ReportParameterForm is
fired, I fill up the options and values manually and put ReportParameterForm
in one of the scopes. Is this right ? How else can I show user selection
options picked up from the database?

After the selection is made, the values are picked up using this
configuration

<!-- Process selection of a report -->
	<action 
	  path="/report" 
	  type="com.hcl.smartmanage.web.ReportParameterAction" 
	  name="reportForm" 
	  scope="request" 
      input="/visibleleftpanel.jsp">
    </action>

bye,
Mohan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>