You should be able to use the email validator on the username.

http://struts.apache.org/2.x/docs/email-validator.html

Matt

On Sun, Jun 29, 2008 at 5:51 AM, Tuncay A. <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Thanks,
>
> That was answer for the question 1. For question 2. The username field of
> the User.java to only accept e-mail address as data and be validated against
> an e-mail pattern.
>
> When do I need to change stuff (SignupAction, etc ) inside
>
> https://appfuse.dev.java.net/svn/appfuse/tags/APPFUSE_2.0.2/web/struts/
>
> Thx
>
>
> mraible wrote:
>>
>> You should be able to override the default validation files by putting
>> them in the same directory in your project.
>>
>> Matt
>>
>> On Sat, Jun 28, 2008 at 6:59 PM, Tuncay A. <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> Hope some can help.
>>>
>>> I make use of Appfuse 2.0.2, Struts as presentation layer, JPA as
>>> persistent
>>> layer.
>>>
>>> I already exported AppFuse core model classes into my project.
>>>
>>> Next, how do I obtain following changes:
>>>
>>> 1.When signing up a new account, prevent some fields eg. "website" to not
>>> be
>>> a required field and some other new fields added to User.java to be
>>> validated.
>>>
>>> 2. Changing the username field of the User.java to only accept e-mail
>>> address as data and be validated against an e-mail pattern.
>>>
>>> Do I need to export
>>> "https://appfuse.dev.java.net/svn/appfuse/tags/APPFUSE_2.0.2/web/struts/";
>>> into my project web folder like I did with core model classes or ?
>>>
>>> Thanks.
>>>
>>> - tuncay
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Appfuse-core-Web-Classes-Modification-tp18176415s2369p18176415.html
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Appfuse-core-Web-Classes-Modification-tp18176415s2369p18179862.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to