刚刚在做Struts开发过程中,遇到了一个问题,tomcat错误提示为:
does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.”
Google了一下,问题很快就解决了。应该把form的method选项设置成post,这样就对了。
我以前都是用的默认method属性,没想到这次竟在这出现问题了,在下面贴一下post和get的区别。
Form中的get和post方法,在数据传输过程中分别对应了HTTP协议中的GET和POST方法。二者主要区别如下:
1、Get是用来从服务器上获得数据,而Post是用来向服务器上传递数据。
2、Get将表单中数据的按照variable=value的形式,添加到action所指向的URL后面,并且两者使用“?”连接,而各个变量之间使用“&”连接;Post是将表单中的数据放在form的数据体中,按照变量和值相对应的方式,传递到action所指向URL。
3、Get是不安全的,因为在传输过程,数据被放在请求的URL中,而如今现有的很多服务器、代理服务器或者用户代理都会将请求URL记录到日志文件中,然后放在某个地方,这样就可能会有一些隐私的信息被第三方看到。另外,用户也可以在浏览器上直接看到提交的数据,一些系统内部消息将会一同显示在用户面前。Post的所有操作对用户来说都是不可见的。
4、Get传输的数据量小,这主要是因为受URL长度限制;而Post可以传输大量的数据,所以在上传文件只能使用Post。
5、Get限制Form表单的数据集的值必须为ASCII字符;而Post支持整个ISO10646字符集。
6、Get是Form的默认方法。
分享到:
相关推荐
mytabis 报错 Mapped Statements collection does not contain value for
The error is " List (Error) Dictionary.getNumber: Dictionary does not contain key:constant." Would be generous to take some time out and help me correct the error? 我无法纠正代码中的错误。错误如下 ...
反编译工具ILSpy.exe:是个很不错的反编译软件,而且是免费了;
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
xcode报错SDK does not contain 'libarclite' at the path
contain mapx.h mapx.cpp
contain mapx.h mapx.cpp
使用通用插件直接生成实体类(包括Example条件类),接口,以及映射文件
全部pdfbox的jar
functional and does NOT contain any ADWARE or SPYWARE. DISTRIBUTION OF SOFTWARE The LITE edition of SOFTWARE may be freely copied and distributed to other users without any restrictions. TERM OF ...
pdfbox2.0.2.jar包,把后面的‘-zip’删掉就可以用,因为怕冲突。有人既然要18个下载分,我觉得这不是共享,别人有需要的时候,确无法下载。不能用可以找我
Program XYplorer File manager for Windows 10, Server 2016, 8.1, 8, Server 2012, 7, Server 2008, Vista, XP, Server 2003;... damage that may unintentionally be caused through its use.
This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. AppWizard creates one dialog class: ...
This implementation is made by Walied Othman, to contact me mail to Walied.Othman@Student.KULeuven.ac.be or Triade@ace.Ulyssis.Student.KULeuven.ac.be, always mention wether it 's about the FGInt for ...
在Unity中,用到MySql数据库时,发布exe 的时侯报错,有关于dll的错误,解决问题所需dll文件。 把unity文件夹下Unity\Editor\Data\Mono\lib\mono\2.0 中的 这三个dll放到项目plugins中就可以了。
This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file AppWizard creates one dialog class: ...
produced when this parameter was a null string (""). Now, the original input filename is used as the AML output filename, with an ".aml" extension. Implemented a generic batch command mode for the ...
This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. AppWizard creates one dialog class: ...
上海通用是上海汽车工业(集团)总公司和美国通用汽车公司各投资50%组建而成的迄今为止我国最大的中美合资企业,总投资为15.2亿美元。共有冲压、车身、油漆、总装和动力总成五大车间。严格按照精益生产原则规划、...
It does not contain samples or support libraries. It contains only the NVIDIA-specific tools to flash and boot Android on the Tegra 250 devkit. To develop for Android, Google provide an SDK ...