Hiển thị các bài đăng có nhãn Server. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Server. Hiển thị tất cả bài đăng

How To : Get Javascript array on server side.

In order to pass an array from client to server, call the server following way with Ajax post call :



var myArray = ['1', '2'];
$.post('action.do', {arrayData:myArray, mode:"get"});

On server:

String[] arrayData=request.getParameterValues("arrayData[]");

This worked for me!
What about you?

Reset IBM HTTP Server Password

IHS (IBM HTTP Server) password is really very needy string when we think about remote administration of IHS, and what if you forgot that very string. So here I am gonna tell you how to reset IHS admin password.
From the command prompt, browse to following directory
<http_root>\bin

Now we will use the command htpasswd.exe and we will pass admin password file named admin.passwd which is located at  <http_root>\conf\
and username for admin.
so the whole command will turn out to be
htpasswd.exe <http_root>\conf\admin.passwd ihsadmin
<now type new password>
<re-type new password>
wholla!! your admin password has been reset.
[ihsadmin is admin username in this case]
.
Admin password for IHS is stored in admin.passwd file in the form of md5 encryption. but while resetting if we use attribute -p, which tells 'plain text', with the command then password will not be stored as md5 encrypted form anymore. Test and check the admin.passwd file. Thanks