已采纳回答 / yuorchid
数据库编码改utf-8可以修改mysql的配置文件 .ini,加#服务端的编码方式 character-set-server=utf8 [client] #客户端编码方式,最好和服务端保存一致 loose-default-character-set = utf8
2017-12-18
最新回答 / 慕村6019880
struts , hibernate , spring 都可以直接在网上搜索的如:http://struts.apache.org/download.cgi 这个就是struts2 下载网址, 你可以选择版本
2017-12-16
最新回答 / 慕粉2213397909
返回“SUCCESS":表示进行业务处理成功时返回该字符串,同时也是execute()方法默认返回的字符串,如果不成功,则返回"ERROR"字符串,或者其他自定义字符串,这些字符串是用来在struts配置action时用到
2017-12-16
最新回答 / 慕村6019880
我使用第一种方法:action的类由struts2自身创建也会出这个错误,也没解决。但是使用第二种方法交由spring创建就行的。需要修改两个地方,struts.xml 的class 修改为 productAction,并在applicationContext.xml 中添加<!-- 配置Action类 因为是默认是单例,所以要加上scope--> <bean id="productAction" class="com.ssh.action.ProductAction" sco...
最新回答 / qq_满天星_19
class中应该是 cn.muke.ssh.action.ProductAction题外话:我的跳转addProduct.jsp页面也报错500,空指针异常???
最新回答 / 慕田峪5126163
<head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Insert title here</title></head><body><h1>保存商品的页面</h1><s:form action="product_save" method="post" namespace="/" the...
已采纳回答 / 慕田峪5126163
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"><struts> </struts>
2017-11-24
最新回答 / FeiLis
你访问的路径对吗?如果你的jsp页面是在WebRoot目录下,其路径如下:http://localhost:8080/ssh/addProduct.jsp 其中:ssh是项目名称,addProduct.jsp是在WebRoot目录下的jsp页面
最新回答 / 慕勒3251033
application.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://...
2017-10-22