this project belongs to the practice of learning the SSH framework of Java Web, referring to the S truts2+spring+hibernate Framework Technology and project Combat Chapter 24th of this book. Of course part of the content I think there is still insufficient, so I based on their understanding of the optimization. Note: The entire project has been open source, there is a need for source code research can be self-download:https://github.com/zifangsky/Onlin
the remote loading, first send a request to the background, the background accountaction query method after processing, the administrator data packaged in JSON format returned back, so that you can get the administrator data, to get, You can perform the echo of the data. Let's look at the backstage program:2.2 The logical implementation of the update category@Controller ("Baseaction") @Scope ("prototype") public class BaseactionNext we configure the Struts.xml file:After the completion of the E
In the previous two, we have integrated ssh and extracted the service and action parts of the interface, we can say that the basic development environment has been set up, this section we build a background page. Let's discuss two ways to build: Based on frameset and Easyui. Finally we will use Easyui to develop.1. Extract the public JSP pageLet's take a look at the current JSP page:
Put aside the body part of the content does not look,
write the contents of the mapping file, as shown in the following code:
Don't forget to take her to the ApplicationContext, the specific code looks like this:
The code ends here, showing you the following effects:
Small Series Summary:
Implementation of the idea is such drops ' (*∩_∩*), first of all by the onblur event trigger, second, write Ajax code, submit to action, pass parameters username, step three, write action, receive username, Implement model-driven c
following code to the aindex.jsp:Next, we complete the QUERY.JSP framework:Next we complete the Queryjoincategory method in the Productaction, before this, the first to complete the service section, we are first from the bottom slowly developed:Productservice interface public interface Productservice extends baseserviceBelow you can complete the Queryjoincategory method in Productaction:@Controller ("Productaction") @Scope ("prototype") public class Productaction extends baseactionNext in the S
JSON Integrate with struts to dynamically retrieve JSON data from the background.(Note: In the end I will provide the entire project source code download!) Welcome to our collection or attention)related reading: http://blog.csdn.net/column/details/str2hiberspring.html___________________________________________________________________________________________________________ __________________________________________-----willing to share and progress together!-----More articles please see: http:/
What is Oscache?is a high-performance Java EE caching framework that caches part of a JSP or HTTP request and can be cached by any JavaScript objectThe cache is stored in the form of key value.can also be permanently cached: Cache can be written to disk at willSupport ClusterUsing Oscache:1. Make the required Jar copy Lib2. Put the Oscache installation directory oscache.properties into the SRC directory3. Introduction of 4. Page Add cacheCache time: Key:http://localhost:8888/oscache_test/?id=1va
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.