随笔分类 -  jsp使用eclipse编程容易出现的错误

总结常见错误,避免自己忘记解决方法
jsp: 在表单请求中 使用post,get,以及action=“#”
摘要:使用action=“#” 原因:无服务器处理表单无导向,而使用jsp就可以用来处理表单action=“XXXX.jsp” method 属性值 post get get 数据透明,无加密 直接显示在服务器日志中 post 数据加密 被编码 使用get 或post 要使用request.getPara 阅读全文
posted @ 2020-06-19 10:35 阅读(905) 评论(0) 推荐(0)
在jsp中关于换行<br >与\n的问题
摘要:在初学jsp时,遇到了换行问题,对于jsp文件与HTML文件换行是不同的。 想要在jsp文件中显示某行空一行使用\n是由于,jsp 与Java类似,换行使用\n 而在网页页面中想要换行,就需要用网页页面的语法处理,就是HTML的<br>,虽然在jsp文件中显示为<br>但是在网页页面中确实是显示空了 阅读全文
posted @ 2020-06-18 16:38 阅读(6462) 评论(0) 推荐(0)
问题(使用eclipse初次创建jsp文件)the superclass"javax.servlethttp.httpservlet" was not found on the java build path
摘要:在window->preference->输入jsp->找到jsp files->encoding (utf-8) 发现文件出现×,the superclass"javax.servlethttp.httpservlet" was not found on the java build path 方 阅读全文
posted @ 2020-06-09 21:35 阅读(169) 评论(0) 推荐(0)