50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

We can use FTPClient class in apache commons library to send UTF-8 encoded file names, such as Turkish, chinese, german etc. ftpClient = new FTPClient(); String server ="ftp.server.com"; int port = 21; String user ="test"; String pass ="test"; ftpClient.setControlEncoding("UTF-8");//must be before connect() method ftpClient.connect(server, port); ftpClient.login(user, pass); ftpClient.enterLocalPassiveMode(); ftpClient.setFileType(FTP.BINARY_FILE_TYPE); ftpClient.sendCommand("OPTS UTF8 ON");//we should send this command...Continue Reading
In XAMPP, we can run multiple web site at any path which is relative to root path by configuring httpd.conf file. Example: In this example, we used symfony web application as root application and site1 and site2 as follows: <VirtualHost *:80> ServerName domain.tld ServerAlias www.domain.tld DocumentRoot C:/xampp/htdocs/symfony/sample/web <Directory C:/xampp/htdocs/symfony/sample/web> AllowOverride None Order Allow,Deny Allow from All <IfModule mod_rewrite.c> Options -MultiViews...Continue Reading
1. Apache Tomcat native library needs APR package, so we must install before Tomcat Install the APR package (Downloaded from http://apr.apache.org/) tar -xzf apr-1.4.6.tar.gz cd apr-1.4.6/ sudo ./configure sudo make sudo make install 2. Download Tomcat binary from Tomcat 7.0.64 3. Extract tar file and move to /opt/ folder: tar -xvzf apache-tomcat-7.0.64.tar.gz sudo mv apache-tomcat-7.0.64 /opt/ 4. Extract tomcat-native.tar.gz in /opt/apache-tomcat-7.0.64/bin folder: tar -xvzf tomcat-native.tar.gz 5. Go to native folder: cd tomcat-nativ...Continue Reading
The request.setCharacterEncoding("UTF-8"); only sets the encoding of the request body (which is been used by POST requests), not the encoding of the request URI (which is been used by GET requests). You need to set the URIEncoding attribute to UTF-8 in the <Connector> element of Tomcat's /conf/server.xml to get Tomcat to parse the request URI (and the query string) as UTF-8. This indeed defaults to ISO-8859-1. See also the Tomcat HTTP Connector Documentation. <Connector ... URIEncoding="UTF-8"> See also:      Unicode -...Continue Reading
ignore="true" is used when an object can be null: <put-attribute name="displayedTitleShortInfo" cascade="true" expression="${problem.title}"/> <h1><tiles:insertAttribute name="displayedTitleShortInfo" ignore="true"/></h1> As seen above, we defined Tiles tag named as displayedTitleShortInfo. The expression attribute of this tag contains jsp expression. When problem variable is null, we encounter runtime-exception: ELResolver cannot handle a null base Object with identifier To solve this problem, ignore="true" attribute must be used....Continue Reading
File Uploading is a very common in any web application. In this tutorial, we will introduce three different file upload operations: single file upload, multipe file upload, and ajax based file upload. First of all, there are some pre-request steps needed: 1. Create a Maven project 2. Add Spring Framework dependencies 3. Add Javax Servlet and JSTL dependencies 3. Add Apache Commons dependencies After initialization web application, directory structure of the application will look below image: Necessary Dependencies As stated above, we need...Continue Reading

© 2019 All rights reserved. Codesenior.COM