-Поиск по дневнику

Поиск сообщений в Brask_McClellan

 -Подписка по e-mail

 

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 03.06.2020
Записей:
Комментариев:
Написано: 21


This project is just for my testing on this machine. Let me speak about my project configuration project directory structure:

Суббота, 06 Июня 2020 г. 20:36 + в цитатник

config.json:
jsp file:% @ pagelanguage = 'java' import = 'java.util. *' pageEncoding = 'UTF-8' %% @ taglibprefix = 's' uri = '/ struts-tags' %% Stringpath = request.getContextPath ( ); StringbasePath = request.getScheme () + ': //' + request.getServerName () + ':' + request.getServerPort () + path + '/';%! DOCTYPEHTMLPUBLIC '-// W3C // DTDHTML4.01Transitional // EN 'htmlheadbasehref ='% = basePath% title / title metahttp-equiv = 'pragma' content = 'no-cache' metahttp-equiv = 'cache-control' content = 'no-cache' metahttp-equiv = 'expires 'content =' 0 'metahttp-equiv =' keyword phrases 'content =' keyword1, keyword2, keyword3 'metahttp-equiv =' description 'content =' Thisismypage '!-linkrel =' stylesheet 'type =' text / css 'href = 'styles.css'-scripttype = 'text / javascript' functioncheck () //varaccount=document.getElementById('myform').value; //varpsw=document.getElementById('psw').value; if (document.getElementById ('account'). value == '') alert ('Account cannot be empty!') goto ; if (document.getElementById ('psw'). worth == '') alert ('Password cannot be empty!'); Return; disappeared samsung memory card data recovery . submit (); /script/headbodyformaction='login.action'method='post'name='myform'id='myform 'inputtype =' text 'value =' 'name =' admin.code 'id =' account '/ inputtype =' password 'value =' 'name =' admin.psw 'id =' psw '/!- formatted samsung memory card data recovery -scriptid =' container 'name =' content material 'type =' text / plain 'Write your initial content here aaaaa / script inputtype =' button 'value =' login 'onclick =' verify () '/ / form s: propertyvalue =' msg '/!- free download full version samsung memory card data recovery software --scripttype =' text / javascript 'src ='% = basePath% ueditor143 / ueditor.config.js '/ script!-Editor supply file--scripttype =' text / javascript 'src ='% = basePath% ueditor143 / ueditor.all.js ' / script!-instance editor--scripttype = 'text / javascript' varue = UE.getEditor ('container'); / script / body / html
Within this way, the configuration editor can be displayed commonly around the page, but when uploading the image, 'the upload file was not found' was reported, and it was lastly solved. formatted samsung memory card data recovery is this: produce a filter yourself: MyStrutsFilter.java
Code: packageStrutsFilter; importjava.io.IOException; importjavax.servlet.FilterChain; importjavax.servlet.ServletException; importjavax.servlet.ServletRequest; importjavax.servlet.ServletResponse; importjavax.servlet.http.HttpServletRequest; importorg.apache.struts2.dispatcher. ng.filter.StrutsPrepareAndExecuteFilter; publicclassMyStrutsFilterextendsStrutsPrepareAndExecuteFilter @OverridepublicvoiddoFilter (ServletRequestreq, ServletResponseres, FilterChainchain) throwsIOException, ServletException (HttpServletRequestrequest = (HttpServletRequest) req; Stringurl = request.getRequest (url. (Request. ('/ more info /ueditor143/jsp/'))System.out.println('Use custom filter'); chain.doFilter (req, res); else System.out.println ('Use default filter ''; Super.doFilter (req, res, chain); Modify web.xml: filter filter-namestruts2 / filter-name filter-class StrutsFilter.MyStrutsFilter / filter-class / filterfilter-mapping filter-namestruts2 / filter -name url-pattern / url-pattern / filter-mapp ing and after that restart the server to upload photos usually.
The cause for this dilemma is: when configuring the struts filter, filtering path setting / * mode, because the struts2 framework makes use of the Apache CommonsFileUpload component along with the built-in FileUploadInterceptor interceptor to upload by default, the request file field is encapsulated into the action A file sort attribute and delete the file field in the request, so the file upload will fail.
http://my.oschina.net/jiangli0502/blog/210263

Метки:  

 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку