1. nseer Logon
ERP/home/login. jsp-> Work. Java (servlet, Judge logon, redirect: Response. sendredirect (URL ))
-> ERP/main/index. jsp (index. jsp uses frameset, including index_top.jsp, index_middle.jsp, and index_bottom.jsp. index_top.jsp includes the main menu and index_middle.jsp is the main page)
2. Obtain Parameters
String Language = request. getparameter ("language ");
3. Set the session and obtain the session
In the small script, the session is a hidden variable and can be used directly. In the servlet, you can get the result through the request:
Httpsession session = request. getsession (true );
Servletcontext application = session. getservletcontext ();
Set: Session. setattribute ("user", user );
Get: Session. getattribute ("user ")
4. Import third-party jar packages:
Right-click the project and choose Properties> JAVA build path> libraries> Add external jars.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service