java - using content type as JSON in form tag -
i having page in jsp needs submit data server. curious whether using enctype can post data in json format. have notice browser default encode application/x-www-form-urlencoded.
there 2 different things here. if submit form, changing enctype irrelevant, since data built browser form fields (name=value; etc.). won't json anyway.
if you're not using form sending post data via ajax call, say, don't have enctype available, pass data want, in whatever format server expects.
Comments
Post a Comment