Texture mapping for NURBS

I have found in msdn:
gluBeginSurface(nobj);
gluNurbsSurface(nobj, . . ., GL_MAP2_EXTURE_COORD_2);
gluNurbsSurface(nobj, . . ., GL_MAP2_VERTEX_4);
gluEndSurface(nobj);

but I am confused of hwo to determine the control points, and also the knots for the texture, are they the same with the NURBS drawn here? Thanks a lot.