struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <Moh...@hclcomnet.co.in>
Subject html options tag
Date Fri, 18 Oct 2002 13:19:17 GMT
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

Mime
View raw message