The admissibility of the initial-boundary data,which characterizes the existence of solution for the initial-boundary value problem,is important.Based on the Fokas method and the inverse scattering trans-formation,an approach is developed to solve the initial-boundary value problem of the nonlinear Schr(o)dinger equation on a finite interval.A necessary and sufficient condition for the admissibility of the initial-boundary data is given,and the reconstruction of the potential is obtained.