Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Jakarta Struts
BOOK: Professional Jakarta Struts
This is the forum to discuss the Wrox book Professional Jakarta Struts by James Goodwill, Richard Hightower; ISBN: 9780764544378
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Jakarta Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 24th, 2005, 10:31 PM
Registered User
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Validator for Action Form containing type

My action form just contains one attribute of type Profile. Profile has an attribute address that is of type Address. If i want to validate City, how do I do it using validation.xml file. If I use . (dot) to navigate from profile to Address, property attribute wont recognize it. I strictly want to use validation.xml file to do that.
public final class profileForm extends ActionForm{
private Profile profile;

public class Profile {
String name
String phoneNumber
Address address

public class Address {
String Street;
String City;
String State;
String Zip;

This code is not working for me.
<form name="profileForm">
<field property="address.city" depends="required">
<arg key="profileForm.address.city" position="0"/>

Old April 7th, 2006, 07:18 AM
Registered User
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

may be u have mention city as small case, try to give address.City. this may work not tried.

Similar Threads
Thread Thread Starter Forum Replies Last Post
form action attribute austinf HTML Code Clinic 2 August 2nd, 2006 08:30 AM
Form Action Problem.. NitinJoshi General .NET 2 January 6th, 2005 06:02 AM
Two action in a form johnjohn Classic ASP Components 1 November 16th, 2004 05:45 PM
multiple form action jack1234 JSP Basics 1 June 8th, 2003 01:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.