When you create a new dynamicwebproject in Eclipse, do not click "Finish", in the next there is a tick option (Generate Web. XML deployment descriptor), the selected will default to generate Web. Xml. For example:After you create the project structure, for example, you see:Note The structure is: Web. XML is outside the
1, Java Smart tips(1). Open Eclipse and select "Window-preferences" to open.(2). Select "Java-editor-content Assist" on the Directory tree and "Auto-activation" on the right to find the "Auto Activation triggers for Java" option. The default triggering code hint is "." This symbol.(3). In the "Auto Activation triggers for Java" option, set the "." Change:. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz2. Smart hints FOR
Eclipse editing Area set font size:Window-Preferences (Preferences)-General-appearance (appearence)-Colors and fonts (Colors and Fonts), in the Right dialog box, select Java-java Editor TextFont, click the Change button that appears, you can set the font size of the program displayed in the main form, click Apply in the bottom right corner after setting up, and then click OK. Eclipse Settings Console font s
I use the Eclipse IDE to import a correct project engineering, some XML configuration files and JSP page error, click to see the specific error, the XML file is some header file error, JSP is a number of functions and so on. But others import no error.This is because we write these files are not strictly in accordance with the rules of the Java EE written, but th
;Location hint will be automatically generated when added;When you click OK, the one you added above will appear similar to the beginning of the article, unlike the one you need. xsd is different;This I have been for a long time, do not know why, after installing the Spring IDE still can not check automatically add window, really depressed, this solution is also good, but still very cumbersome;If there is know how to solve, may wish to write an article let us these techniques small white also lo
DTD type constraint file1. window->preferences->xml->xml catalog->user Specified Entries window, select the Add button2. In the Add XML Catalog Entry dialog box, select or enter the following:Location:f:/soft/programmingsoft/framework/ibatis/sql-map-config-2.dtdKey Type:uriKey:http://ibatis.apache.org/dtd/sql-map-config-2.dtdXSD type constraint file1. window->pre
DTD type constraint file1. window->preferences->xml->xml catalog->user Specified Entries window, select the Add button2. In the Add XML Catalog Entry dialog box, select or enter the following:Location:f:/soft/programmingsoft/framework/ibatis/sql-map-config-2.dtdKey Type:uriKey:http://ibatis.apache.org/dtd/sql-map-config-2.dtdXSD type constraint file1. window->pre
Problem Description: When writing a Web project using Eclipse, the SRC package contains the XML file, but when using Tomcat deployment, the Java file was successfully deployed and compiled for the class file, but the XML file was not successfully deployed. Solution: Right-click the project-->buildpath-->configure buildpath-->source tab--Select the corresponding p
When you open or edit an XML file by using Eclipse, if the XML file header references an XSD or DTD, it can sometimes be suspended, because eclipse will then verify the XSD or DTD files that are declared on the line, and then feign death if the connection is slow. The solution is to import some of the slower-connected
When Eclipse builds the SSM Framework project (Web project) through Maven, the default web.xml file version is 2.3,JRE version 1.5, and there are various issues in modifying its versionFor example:is missing and is set to trueJavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer等问题When you look up a method, the configuration order error is also the caus
Prompt for adding Hibernate configuration file
Decompress the hibernate. jar package
Locate the hibernate-configuration-3.0.dtd and hibernate-mapping-3.0.dtd under the org \ hibernate directory
Open Eclipse --> Window --> Preferences --> Web and XML --> XML Catalog
Click Add XML Catalog Entry on the right
Locati
I have been writing projects these days to find that my previous projects can access, in a period of time to write this project is not able to access, did not find the logic of the code error, but is not access to JSP page, the project was released is a 404 error, and later found that it was released to Tomcat above the project did not publish index.jsp with the Web. xml file, the Lib package is not even published. Here are the details of the process
Original address: http://blog.csdn.net/hdfyq/article/details/5821038:
Reason: Eclipse default code line width is 80, after formatting code, often wrapped, very ugly.
Workaround: JSP and XML are simpler to solve.
Open a JSP or XML. Right key->preferences-->source--> Find line width changed to 200.
Java Solution:
Window==>preferences==>java==>code
Add Hibernate profile hint
Extract Hibernate.jar Package
Find Hibernate-configuration-3.0.dtd and HIBERNATE-MAPPING-3.0.DTD in the Org\hibernate directory
Open Eclipse-->window-->preferences-->web and Xml-->xml Catalog
On the right click Add XML Catalog Entry
Location: Introducing the DTD file mentioned above
Key
Java Code auto prompt feature settings:
Configuration steps:
1 Windows > Preferences > Java > Editor > Content Assist
2 "Auto activation triggers for Java" This option refers to the option that triggers the code hint,
Put the "." Modified to ". Abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
XML code auto Hint feature setup step:
To set code hints for XML files
Open
The following is a summary of the eclipse Error Log after this error occurs:
## An Unexpected error has been detected by hotspot virtual machine:## Exception_access_violation (0xc0000005) at PC = 0x6d2617ae, pid = 5136, tid = 3824## Java VM: Java hotspot (TM) Client VM (1.5.0-b64 Mixed Mode)# Problematic frame:# C [fontmanager. dll + 0x217ae]#
--------------- T h r e a d ---------------
Current thread (0x003e28): javathread "Main" [_ thread_in_native
Test Editors, and there are other options, such as the color style of the error prompt, which you can try to change as needed. Eclipse Font Sizing: Window/preferences/general/appearance/colorsand Fonts, in the Right dialog box, select Java–java Editor Text Font, click to appear Edit button, you can set the font size of the program displayed in the main form, click Apply in the bottom right corner after setting up, and then click OK (OK).
A previous article was also a Web development plugin installed in Eclipse, but after a lot of people use it, not everyone can use it.Next, find a very useful way to install online.Needless to say, this method can definitely be installed successfully.1. Open the Help ———— >install New software in eclipse2. Click the Add button, then pop up a box, the first text box can be written casually, the second must be written:Http://download.eclipse.org/releases
The XML file reported a checksum error in eclipse:The content of element type "Web-app" must match "(icon?,display-name?,description?,distributable?,context-param*, Filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?, error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*, env-entry*,ejb-ref*,ejb-local-ref*) "....Web.
In some versions of Eclipse and MyEclipse for Java EE, each double-click on a JSP file opens half a Web browser, half a page code editor,and write code always very uncomfortable, automatically refresh the page editor.The cursor that causes the code to be written will always jump automatically,Always right-click a JSP file to select JSP Editor to open the Pure Code Editor.In fact you can set Eclipse and MyEc
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.