struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Addagalla" <>
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"
	<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" />

Action mapping related config:

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

<exception type=""
key="error.dberror" />

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


>-----Original Message-----
>From: Rick Reumann [] 
>Sent: Friday, January 17, 2003 8:44 PM
>To: Struts Users Mailing List;
>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.

View raw message