custom registration getToken() returns null value

Hi,

I've just added some fields to the standard registration form and modified the Membership.properties and iwtAuthMembership.xml file accordingly. I've deleted the old component and imported the newly created one. In my Membership.java i did the following :

String phAttribute = getToken("passwordHint");

if (phAttribute == null)

{

setNextScreen(11);

return;

}

String passwordhint = getToken(phAttribute);

An exception was thrown on the first line, which says phAttribute is null.

What causes this and how can i solve it?

[600 byte] By [708943] at [2007-11-25 4:38:53]
# 1

A couple of things you could look at:

1. Does the name/attribute pair actually exist in the HTML form that gets presented. ie:

// <INPUT TYPE="TEXT" NAME="passwordHint" SIZE="22">

//

2. Is the correct form being display via the .properties file.

3. Have you specified this attribute in .properties file. ie :

//

SCREEN

TIMEOUT 300

HTML register.html

ATTRIBUTE password

ATTRIBUTE userName

ATTRIBUTE passwordHint

This should be all that is required to implement any new attribute value pairs.

Hope this helps.

chrismulderza at 2007-6-29 3:11:37 > top of Java-index,Web & Directory Servers,Portal Servers...