Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Jakarta Struts
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 24th, 2005, 10:31 PM
Registered User
 
Join Date: May 2005
Location: , , .
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"/>
</field>
</form>
--------------------------

  #2 (permalink)  
Old April 7th, 2006, 07:18 AM
Registered User
 
Join Date: Apr 2006
Location: , , India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:55 PM.


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