Step One:Add Kaptchar jar package to the project: http://code.google.com/p/kaptcha/(Thunder download is recommended)Step Two:Configure Web. XML, detailed configuration (not all configurations here, there are many parameters can be reduced as appropriate): The above is for the use of Google plug-in generated verification code parameter configuration, do not write the code generated by the tool class.Step Three:To add a picture label to the
Today really spent a lot of time on this garbled problem Ah! To prevent the next time you or others encounter similar problems to waste too much energy here ...Close-up some of the unified coding related steps, not often write articles, this article may not write well, for reference only, thank youThe encoding format for the unified files is UTF-8:My JSP file header: (The header of the XML file is the default: And through MyEclipse configuration
Author: LuckEmail: webmaster@chinaspx.comWhen designing JSP projects, the current methodology provides more limits rather than help. According to Mr. Kochmer, the key to successfully running a JSP project is project management rather than design..Contrary to the general idea, the best design methodology is not the form
today, the problem with a tomcat deployment is rooted in the server.xml configuration.Error such as title, say HTTP Status 500- Javax.servlet.ServletException:XXX file can not find, after several search test, the program is not error, some people say is Jsp-api.jar and Serlet-api.jar package conflict, debugging found does not solve the problem, later found that the problem lies:The starting Server.xml configuration is configured for the host and its c
understanding of HTML and the Java language, if you have not learned that there is no relationship, the following introduction will let you have a more intuitive JSP to understand.
3 experience simple and easy to learn jsp:jsp simple and easy to learn, if you have the basis of HTML, to learn it is very easy, do not believe? First take a JSP program for you to see (Simple and classic helloword.jsp):
Defi
When writing a Java Web project, you need to define a lot of JSP files, if all the unified in the root directory of the webcontent looks like a mess, time has long been unable to find the specific JSP file corresponding function is what, Therefore, it is best to customize the folder in the root directory of webcontent to store
I imported a MAVEN project but the JSP page has been an error, I first follow the online experience to operate the following steps:Add dependent dependencies on Javax.servlet in the Pom.xml configuration file: Rely on the Tomcat class library:Project Right-click->build path-> Configure Build path->libraries-> Add libraries-> server runtime-> Select a server lib -OKThis method does not
default valueSet the line number per page2. Execute the SQL statement againStart paging.Remove the data from the database (result set) DAO----->entity into the object Ah, in the collection AH service layer Returns DAO layer service----->servlet-----jsp3. servlet LayerTo invoke a paged query method on the list pageBecause you need the user to pass the argument, you have to make a non-null judgment.In the servlet layer, as long as the forwarding is written xxx.jspAs long as the redirect is "list"
available in the Apache Tomcat/6.0.35 logs.After Baidu checked the cause, is the project lib under the jsp-api.jar and tomcat under the jsp-api.jar conflict caused. Because I used a user library in my project that contains two packages: jsp-api.jar and servlet-api.jar, and
Article Summary?? 1.Official documents:@RestController is a stereotype annotation that combines @ResponseBody and @Controller.It means:@RestController annotations are equivalent to @responsebody + @Controller together.1) If you use the @restcontroller annotation controller only, the method in the controller cannot return to the JSP page, and the configured view resolver Internalresourceviewresolver does not work. The returned content is the content in
In the front-end development, especially the MVC architecture of multi-person development, responsible for the front-end child shoes always need to do static pages, and back to the background before the use of variables such as El expression and other testing functions, so I introduced a template JSP data testing dedicated files, specifically configure all the variables, Then, in the JSP page to be tested i
excel|js| Data | Before the project time, the customer request our system can realize the data exchange with MS Excel, can import the data of the system into Excel. Our system is a Java b/s structure of the MIS system. To solve this
Problem, I found an open source project JXL that specializes in Excel, and found a good article on how to use the JXL Development Kit:
--http://www-900.cn.ibm.com/developerworks
Recently wrote a simple registration page, but after submitting the form, the program did not invoke the corresponding action, but the submitted parameters are displayed in the URL address bar.Detection of the half-day code, action various configurations are not wrong, but how to invoke the program did not call their own action, and finally carefully detect the JSP page found thatThere is actually a form outside of your form form, which leads directly
attachments bodypart Contentpart = new MimeBodyPart (); Set the text content of the message contentpart.setcontent (text, "Text/html;charset=utf-8"); Multipart.addbodypart (Contentpart); message.setcontent (multipart); Message.savechanges (); Save changes Transport Transport = Session.gettransport ("SMTP"); Connect the server's mailbox Transport.connect ("smtp.163.com", user, password); Send the message out transport.sendmessage (message, message.getallrecipients ()); Transport.cloSe
Scene: With IntelliJ idea launch Springboot project Access appeared 404, very skin, because I use eclipse development is normal, look for a long time, what add comment off 1. This third step, the Web. XML is automatically generated, need a second step to add, if not yet appear can, wait to see again, maybe generate full also not necessarily, or build one yourself can,2. And then the second big step, In the run panel there is a run configuration, point
Web project (if your eclipse is Web-version, you will have this option, if you are not looking for one or other way to solve it).
The new project name is called BBS, expand can see a lot of folders, it is recommended to put the JSP file under Web-content, (directly Click this folder right button to create a new JSP
How to Create a jsp project and tomcat configuration tutorial in idea2017, idea1_tomcat
1: Create a new project, without any brains
Enter the project name and select the address.
2: Configure tomcat
Download the zip package (https://tomcat.apache.org/download-90.cgi) from the tomcat official website, extract it to a
Author: LuckEmail: webmaster@chinaspx.comWhen designing JSP projects, the current methodology provides more limits rather than help. According to Mr. Kochmer, the key to successfully running a JSP project is project management rather than design..Contrary to the general idea, the best design methodology is not the form
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.