Monday, July 15, 2013

how to replace 2 or more spaces with single space in string using Java

package com.swain;

public class StringUtil {
    public static void main(String args[]) {
        String before = " Himanshu      Sekhar           Swain  ";
        System.out.println("before: " + before);
        String after = before.trim().replaceAll(" +", " ");
        System.out.println("after: " + after);
    }

}

Tuesday, July 9, 2013

How to disable selected date range of Datebox in zk


<zk>
  <window border="normal" title="hello" apply="pkg$.TestComposer">
     
      <div>Welcome to ZK Fiddle , run it right now!</div>
     
   
    <datebox id="db11" width="150px" constraint="no empty,after 20130710,before 20130720" />
  </window>
</zk>


* constraint="no empty,after 20130710,before 20130720"
*  20130710 means 2013-07-10 and 20130720 means 2013-07-20

Wednesday, July 3, 2013

how to change java version in websphere

 Find out this video tutorial.




How to install IBM WebSphere Application Server with java 7 in windows

Step 1:

Download  WebSphere Installation manager here 

Step 2:  install WebSphere Installation manager

Step 3: Select java 7



Step 4.
 Step 5.
Choose Path.

 Next

 Next

Next.

 Next.

 Select profile management tool then Finish

 Create Profile click on Create.


 Select Application Server


 Next



Set your admin details.



Create.





Then start window will open You can start your server.

Default profile Name : AppSrv01
Default Admin port: 9060
Http port : 9080

Admin Url- http://localhost:9060/admin
or 
https://localhost:9043/ibm/console/logon.jsp

Login here with your admin user name and password.


Then follow some video tutorial here

 1.  how to deploy war file in websphere
2.  how to create user and delete user in Websphere
3. how to change java version in websphere



How to deploy war file in websphere

Look this video tutorial.


how to create user and delete user in websphere

 Look this video tutorial.

how to check virtual host in websphere

You can find out this video tutorial.



How ChatGPT can Benefit Coding: Your Guide to Leveraging an AI Language Model

 Introduction: Hello, coders! Welcome to this blog post on how ChatGPT, an AI language model, can benefit your coding skills and projects. A...