struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Addagalla" <suresh.addaga...@wipro.com>
Subject RE: Validator and Form Bean
Date Fri, 17 Jan 2003 15:23:16 GMT
Yeah, I seem to be setting up struts-config correctly as it works fine
if I change the scope to "session". Here is the config:

Form-bean related config:

<form-bean name="servicesForm"
type="org.apache.struts.validator.DynaValidatorForm">
	<form-property name="serviceSets" type="java.util.Vector" />
	<form-property name="services" type="java.util.Vector" />
	<form-property name="serviceSet" type="java.lang.String" />
	<form-property name="service" type="java.lang.String" />
	<form-property name="announcementStartDate"
type="java.lang.String" />
	<form-property name="announcementEndDate"
type="java.lang.String" />
</form-bean>

Action mapping related config:

<action path="/services" type="prwp.action.ServicesAction"
name="servicesForm" scope="session" validate="true" parameter="task"
input="/services.jsp">

<exception type="com.nokia.ipdc.ss.prwp.service.DjapiException"
key="error.dberror" />

<forward name="Success" path="/services.jsp" />
                 
</action>

Thanks,
Suresh

>-----Original Message-----
>From: Rick Reumann [mailto:maillist@reumann.net] 
>Sent: Friday, January 17, 2003 8:44 PM
>To: Struts Users Mailing List; suresh.addagalla@wipro.com
>Subject: Re: Validator and Form Bean
>
>
>On Friday, January 17, 2003, 8:42:11 AM, Suresh wrote:
>
>SA> But now, my whole form is not getting displayed because I am not
>SA> getting the form bean back. Any thing I am missing? **Must the
>SA> form bean be in session scope if I want this functionality?**
>
>No, the FormBean can have request scope. How are you setting up the
>form bean into the page initially? Are you sure you are setting it up
>correctly in the struts-config.xml file? Maybe you could paste that
>part of the code here.
>
>
>-- 
>
>Rick
>mailto:maillist@reumann.net
>


Mime
View raw message