Method for processing Chinese disorderly codes submitted in get mode in jsp (java server pages)
A Chinese and method technology, applied in special data processing applications, instruments, electrical and digital data processing, etc., can solve problems such as high cohesion, affecting user experience, and low coupling, and achieve the effect of enhancing user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] Such as figure 1 As shown, Chinese characters are URL-encoded twice before submitting Chinese through the jsp page get method, and then URL decoding is performed on the server side again. The specific steps are as follows:
[0017] Step 1: Obtain the path of the jsp page get method to submit the request, that is, the url;
[0018] Step 2. Determine whether there are Chinese parameters in the url. If there are Chinese characters, encode the Chinese characters twice. The attached code is as follows:
[0019]
[0020]
[0021] Step 3: After the server Action or Servlet receives the parameters, it decodes the URL again. The attached code is as follows:
[0022] / / Background server code
[0023] String str=java.net.URLDecoder.decode(tt,"utf-8"); / / Decode URL once.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com