Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <form id="contForm" method="post" name="formCont"
  2. action="/wps/customforms/ParticipationRequest"
  3. enctype="multipart/form-data">
  4.  
  5. <div class="spec textarea small" id="inpSpec">
  6. <label class="label" for="inp"><%=content.getLangMap().get(langcode)%>
  7. <span class="required">*</span> <span class="hint"></span> </label>
  8. <div class="value">
  9. <div class="control">
  10. <textarea cols="5" rows="3"
  11. id="<%=String.valueOf(content.getId())%>"
  12. name="<%=String.valueOf(content.getId())%>"></textarea>
  13. </div>
  14. </div>
  15. </div>
  16.  
  17. List<FileItem> items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);
  18. String description = null;
  19. for (FileItem item : items) {
  20. if (item.isFormField()) {
  21. if (item.getFieldName().equalsIgnoreCase(String.valueOf(content.getId()))) {
  22.  
  23. // Here I get invalid data for french characters.
  24. description = item.getString());
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement