Neir Kate

Greenhorn
+ Follow
since Jan 24, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Neir Kate

Dear all,

Have anyone ever experience these? So, the query works fine but it takes about 1 minutes 40 seconds for the query to display. But when i try to execute through the report, it's filling report forever and never show, no error as well. The result of the query is only 380 rows.

But if I reduce the result of the query to 16 rows, the report works fine. So does anyone know what is the problem? Can someone give solution or maybe some problems are unidentified by me?

Your help and reply would be very appreciated.

Oh yes, i'm using iReport 1.3.3 and iReport 3.0.0 and I get the same problem, maybe this is not because of the version of the iReport

Regards,

Kate
I'm accessing http://192.168.1.46:7080/emf/index.jsp where "192.168.1.46" is my localhost. Oh yeah, your question make my test my code using Internet Explorer and it works, but I still get the "access denied" using mozilla firefox and when I typed in, "about lugins", it said that the Java version it is using is:
Java(TM) 2 Platform Standard Edition 5.0 U11
File name: NPJava11.dll
Java Plug-in 1.5.0_11 for Netscape Navigator (DLL Helper)

I wonder what is wrong? Is it possible that the mozilla browser using different version of jre? and is there any other way I can check this?

Thanks
16 years ago
Hi all,
I'm still new in java applet, so there are some problems that I cannot solve, and I need help from the masters here

I'm trying to execute "ipconfig /all" (In Windows of course) using the Java code, as follow (InetAddressApplet.java):

public final static String getMacAddress() {
String macAddress ="";
bla...bla...
Process p = Runtime.getRuntime().exec("ipconfig /all");
bla...bla..bla
return macAddress;
}
and in the jsp, I have also include the applet:

<applet code="InetAddressApplet.class" width="0" height="0" name="InetAddressApplet"></applet>

then, I'm trying to get the MacAddress by parsing the value I get from "ipconfig /all" by using:
alert(document.applets['InetAddressApplet'].getMacAddress());

I also have editted the java.policy in
C:\Program Files\Java\jre1.5.0_11\lib\security
and
C:\Program Files\Java\jdk1.5.0_11\jre\lib\security

adding the following lines :

grant codeBase "http://192.168.1.46:7080/emf/-" {
permission java.security.AllPermission;
permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete, execute";
};

but I still get the error message :

access denied (java.io.FilePermission <<ALL FILES>> execute)

after I print the trace, it stated that the access is denied in the line that's calling "ipconfig /all", how can I solve this problem? Are there any steps that I missed?

Thanks in advance, and sorry for my poor english
16 years ago
Hi all,

Does anyone know, how to get the MAC Address (Physical Address) from Java code?

Thanks in advance,
Regards,
Neir Kate
17 years ago
Dear sir, thank you for your quick reply.

I'm interested in your solution about passing the information of the client along while doing the login process. But could you help me about what information that i could use ? The application is web based. Is it possible for my login page to look for the machine's mac address ?
17 years ago
Currently, when the branch of the company login to the system, we keep track of the 'action' and IP address, but beside the IP address that we obtain from the NAT, we also want to keep track of the local IP in LAN, so that we know directly, which computer access the system.

That's why I need to know the private IP addresses.

Thanks, best regards,
Neir Kate
17 years ago
Currently using HttpServletRequest, I can get the IP address of the client that sent the request over the internet, by calling getRemoteAddr() method. But, I also need the client's IP address in its own Local Area Netwokk. Does anyone know how to get the client's internal LAN IP Address?? Is this possible ?

Please help, it's urgent ^_^

Thanks in advance
Kate
17 years ago