Advertisement
codeuniv

JSP encoding (set in web.xml)

Jun 21st, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.41 KB | None | 0 0
  1. <%@page pageEncoding="UTF-8"%>
  2.  
  3. Instead of repeating the pageEncoding over all JSP pages, you could also set it globally in web.xml as below:
  4.  
  5. web.xml :
  6.  
  7. <jsp-config>
  8.     <jsp-property-group>
  9.         <url-pattern>*.jsp</url-pattern>
  10.         <page-encoding>UTF-8</page-encoding>
  11.     </jsp-property-group>
  12. </jsp-config>
  13.  
  14. https://stackoverflow.com/questions/33941751/html-form-does-not-send-utf-8-format-inputs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement