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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -