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/10/18 15:19:17 UTC

html options tag

Hi,
    What is the importance of the form tag when used with the html select
tag ?

<html:form  action="report.action" onsubmit="validate(this)" >
---------
<html:select  property="applications" multiple="true" size="1" >
<html:options collection="applicationOptions" property="value"
labelProperty="label"/>
</html:select>
---------

My struts config file contains

<action    path="/mainscreen"
               type="com.hcl.smartmanage.web.action.ReporterParameterAction"
               name="reporterParameterForm"
               scope="session"
               input="/mainscreen.jsp">
    </action>

<action    path="/report"
               type="com.hcl.smartmanage.web.action.ReporterSelectionAction"
               name="reporterParameterForm"      .........Is this correct?
               scope="session"
               input="/mainscreen.jsp">
    </action>
---------

The options are shown in "reporterParameterForm". So after the options are
shown in "reporterParameterForm", the submit will be to "report.action". The
selected values should be retrieved from "reporterParameterForm" by
"com.hcl.smartmanage.web.action.ReporterSelectionAction".

bye,
Mohan