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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -