Problems encountered when using the Myeclipse+struts+hibernate test
Because of the work reason, uses the myeclipse+struts1.2+hibernate3.1+ Spring2.0 Framework to write procedures, just at the beginning of the Tomcat6.0 written on the top of the leadership to get Resin3.0, the specific reason is not clear, no way, do it.
MyEclipse automatically generated SSH structure directly to the Resin3.0, the resu
Struts1.2 + spring2.0 + hibernate3.1 highlights of problems and solutions in project framework construction (2)
There are two bugs in the process of building a project using MySQL as a database:
Severe: servlet. Service () for servlet JSP threw exceptionJavax. servlet. jsp. jspexception: No getter Method for property userid of bean org.apache.struts.taglib.html. BeanAt org. Apache. Struts. taglib. tagutils.
Add this link if repostedHttp://blog.csdn.net/imainTable Source
The following are my first problems with Struts:
1. Tomcat is started successfully, but an error is reported when running the program:HTTP status 404-(/Wisdom/inputcontent. jsp ). Error cause:
C:/Tomcat 4.1/webapps/wisdom/WEB-INF/the lack of struts Tag file (. TLD), the lack of. TLD file copy to the
The following is from: http://zxub.cnblogs.com/archive/2005/11/04/269170.aspx
Before the final
Nothing to see the next hibernate, and struts, with the use of MyEclipse 4.0.2, try to build a web aplication with MyEclipse, add hibernate capabilities and add Struts capabilities, then run resin 3.0.14, see the error, the beginning is a log4j problem, this is the hibernate problem, put hibernate (SRC) etc in
Struts 1.1 supports applyingProgramIt is divided into multiple modules, each of which can be seen as an independent application. At the same time, I also found some problems. For example, if a struts application is divided into about ten modules, we do not know how to solve the following problems:
1. Because verifica
There are many
(1) Find My. ini in the MySQL directoryOpen it, find the default-character-Set setting, and change it:Default-character-set = gb2312
If the version is 5.0 or later, you can set it in the configuration panel:For details, see:Http://ycoe.cnblogs.com/articles/354485.html
(2) string newname = new string (name. getbytes ("iso-8859-1"), "GBK ");
1. Make sure that the character set you used when installing MySQL is GBK.------> 1. ------> 2. If you have a Chinese character in JSP,
core controller filterdispatcher, the Business controller action, and the enterprise business logic components implemented by the user. The core controller Filterdispatcher is the foundation of the Struts 2 framework and contains the control flow and processing mechanisms within the framework. Business controller action and business logic components are required to be implemented by the user. While developing the action and business logic components,
file handles in Linux. See Appendix 1. For this number, it is generally recommended that it be 32667, or you can set it to a larger value. We can adjust it to 51200 directly.
2. permsize Problems
Symptom: After the resin is continuously accessed for a period of time, for example, one day, the following error 500 will be reported, resulting in access failure to all pages:
Outofmemoryerror: permgen Space
At this point, you can only restart the m
Q: Cannot get file object and file name in struts background?Answer: 1. To Dropzone.js search "return xhr.send (formData);"2. There is a code in front of it: for (i = _m = 0, _ref5 = files.length-1; 0 _ m) { formdata.append (this. _getparamname (i), files[i], files[i].name); }3. Locate the code and change the Formdata.append (...) to the following: for (i = _m = 0, _ref5 = files.length-1; 0 _ m) { formdata.append ("Fil
tokenstr; False:session is null or TOKENSTR are ID not in session*/public static Boolean Istokenstringvalid (String Tokenstr, HttpSession session){ boolean valid=false; if (session!=null) { arraylisttokenlist= gettokenlist (session); if (Tokenlist.contains (TOKENSTR)) valid=true; tokenlist.remove (TOKENSTR); } } returnvalid; } } How to use?On the JSP page side.First import the class:The form contains a hidden token string:The server-side action is tested.if (Token.istokenstringval
namespace, not found, continue down (find it back)/user/a to find out if there is this namespace, not found, continue down (find it back)/user to find out if there is this namespace, not found, continue down (find it back)/default namespace, not found, error ConstantDefault access suffix in strutsDo in struts1, action in Struts2 (below)So how to modify the suffix of the default accessThe default suffix for STRUTS2 has the following code in Struts-co
with Struts, you must first add enctype = "multipart/form-Data" to the form, for example.......In addition, define the corresponding formfile object and (get/set method) in the corresponding * form. java)
Note the following:Document. Write ("photo =" + Document. Write ("src =" + -- %>
In the above Code, pay attention to this line[1]:
You can also write it like this.[2]:
[Note: The values here is only a map defined in form to facilitate the value t
The common way that Struts solves coding problems:The first type:Create a file struts.properties configuration file under SRC (consistent with the Struts.xml file path),The contents of the struts.properties are as follows:The second type:The constants are injected directly into the Struts.xml configuration file as follows:In fact, as long as the constants can be used in the Struts.xml The third type:when configuring the front-end controller in Web. XM
After reading about Hibernate and struts, and using myeclipse 4.0.2, I tried to use myeclipse to create a web aplication, add hibernate capabilities and add struts capabilities, and then run resin 3.0.14, the error is displayed. At first, it is a log4j problem. This is a hibernate problem. copy the properties file to and hibernate. cfg. the same directory in XML does not have this problem. The remaining
happens.There is still a problem after the click but the problem is obvious, that it is normal to throw an exception without passing the entity.Try adding the parameters below? category.id=2category.type=ggacategory.hot=falsecategory.aid=1And look at the results.Resin will automatically buildTake a look under WebApp.The discovery was not updated and the time is now 12:06:20Well, wait, see how long it's going to update.Forget it, I'll restart it myself.Now that the problem is found, my war packa
The original version is 2.3.x and needs to be upgraded to 2.5.2 for security reasons.
The 1,2.5.2 version no longer provides Xwork.jar and is integrated into the Struts-core package.
2, the method does not access the problem, you need to add strict-method-invocation= "false" in each action profile:
and modify the configuration file header to version 2.5:
3,session failure, for WebLogic server, add session-descriptor node:
this a gameobject newspaper fault, is this gameobject some of the resources have problems? To this gameobject various analysis, put it to unload eight pieces, handle into a very simple gameobject, still can't! Is it a question of names? Change the name of this gameobject, OK!This is the end of things, but it is too baffling! Moreover, the most important thing is, the elder brother likes the original name!! Change this resource to a new name, how to s
Importing unity 3D to the 3dmax model may cause several problems. According to official instructions, importing the max model into an fbx file to the Untiy file does not seem to be a solution.
1. X axis deflectionAfter the 3dmax model is imported, there is an automatic 270 degree deflection of the X axis. Coincidentally, When you rotate the model in unity, you wi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.