Tuesday, June 30, 2009

how to add an external weblogic server to jdeveloper

add "Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar" file to "Oracle\Middleware\jdeveloper\jdev\lib\ext" and restart the jdeveloper.

1) In jdevepoler view menu choose "Application Server Navigator".

2) Then right click on the "Application Servers" and select "New Application Server".

3) Enter weblogic server ip , port, username, password.

4) Enter the weblogic domain as "WLS_Domain";

5)Test your cnnection.

6) Right click on your project select Deploy --> to your weblogic server.

get integer value of a char

int x = str.charAt(1)

This return the integer values of the char.

ex:-

A = 97

Friday, June 26, 2009

Disable back button in IE using js

use this code in your page onload method.

window.history.forward(1);

Sunday, June 14, 2009

remove unwanted chars (new line,tab) in java

String truncated = originalString.replaceAll("\\p{Cntrl}", "");

Monday, June 8, 2009

mysal data load and unload

SELECT * INTO OUTFILE 't1.txt' FIELDS ENCLOSED BY '0' FROM t1;

LOAD DATA INFILE 'LEVEL4.TXT' INTO TABLE HSBC_LEVEL4 FIELDS ENCLOSED BY '|';