Updated jsp to handle both new and existing forms