标签:action

关于 request.getInputStream() 得到空数据的问题

在Struct action 中接收 post 方式提交上来的数据, 用request.getInputStream();但是得不到数据,这是问什么啊,原因是数据没有 name ,所以不能用getParameter();方法。 求高手指点一下 。 解决方案 10 enctype=”multipart/form-data” 30 本人……

关于action跳转不过去卡住了的问题

web.xml <?xml version=”1.0″ encoding=”UTF-8″?> <web-app version=”2.5″ xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=&……

浏览器中访问url地址进不到后台action

package net.shopxx.controller.shanghai; import java.util.List; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import net.shopxx.controller.admin.Ba……

Java EE struts 2中的默认Action配置的问题

参考着李刚的“轻量级Java EE”做了一个练习。按照书中的介绍完成了默认Action的配置后,出现如下情况: 在浏览器中按照下面这种方式输入一个不存在的URL时,可以按照本人的预期导航到本人定义的错误页面。 “http://localhost:8080/xxx/notExistsPage“ 可是假如本人在上面这个URL的后面加上”.jsp“后……

struts2 从一个jsp跳转到另一个action出错

struts2jspexceptionapacheaction HTTP Status 500 – type Exception report message description The server encountered an internal error that prevented it from fulfilling th……

在action中 使用@Resource注解service层 总是得到null

springserviceaction  在action中 使用@Resource注解service层 总是得到null dao层和service层中的都能正常得到值 但是使用getBean()却可以得到service什么原因求指教。。。 架构是s2sh纯注解。 @Service(“serviceFaceImpl”) pub……

报错 There is no Action mapped for namespace / and action name .

struts2namespaceaction jsp页面并未请求action,为什么会报这个错误? 给出以下三个资料: 1、JSP页面 <body> <s:set name="age" value="29"/> <s:if test="#age>60"> 老年人 </s:if> <s:e……