|
Anyone could suggest a book to a beginner who wants to learn Java 2 and takes the SL-275 exam?
Thanks
|
|
|
|
|
Hail all.
I have a question on LDAP. If I have a LDAP server with only supporting anonymous connection. Could I actually do authentication using users and passwords as stored in LDAP server? Thus I will make a open anonymous LDAP connection and then sending the user name and password to actually check whether there is an entry in there matching that user name (DN) with that password.
However, when I looked at the attributes in an entry (using anonymous connection again), I could not see user password as one of the attributes.
Then my question is, is it possible to do authentication using the method that I described above? Is there any API I could use (open to C++ or java)?
Any other method that I could make use anonymous connection to do authentication for LDAP ?
Thanks
|
|
|
|
|
I want to write a programme in Java which can connect a website and return data from the website( like its opening page, and its source eg. HTML code or Java script code of that site )...
i can use:
java.net.url myUrl = new URL("http://www.mySite.com");
But how to connect this site if i am using proxy setting.And again how to show the content of this site ?
Thanks in advance
Regards
Aminur
|
|
|
|
|
How can i add some text boxes through javascript
i have a form having some controls already now i wanna add some more controls below existing controls.
Pls tell me the solution as i am new to javascript
|
|
|
|
|
The method of making radical changes in screen contents from javascript (Called Dynamic HTML) is basically to overwrite a chunk of the HTML.
But you generally need to replace the whole contents of a particular tag.
So you might rewrite the hmtl for your whole form.
You do this by setting the "innerHTML" property of the element you're changing the contents of to a string value containing the new HTML code.
You can, of course, put in tags just for this purpose, typically I use tags with IDs.
If you just have some fields that are only shown sometimes it's generally easier to just mark them hidden in the HTML and use the javascript to change their style.visibility property to vissible.
|
|
|
|
|
Hi ! Hope you all be fine
I want to move a selected text in a JTextField from a location to another by pressing the mouse on selected text and dragging it to newer
location in the same textfield(Like Microsoft word) how to do it with my JtextField.Will u help me out please
Regards
Aminur
|
|
|
|
|
hi folks
Can u give me an idea for developing an application in java which receives and sends SMS messages.
get bac to me as soon as possible if u have any suggestion
thanking u in advance
BSR
BSR
|
|
|
|
|
In order to send SMS messages you will probably need a gateway of some variety. There are a few vendors that supply the hardware/software (nokia do one I think) or you can buy a service from a online SMS gateway provider where you will be charged per SMS. The interface to these is normally http so you will just need to use the standard java.net packages to send a message from your app. I ended up having my app sending emails to my gateway provider who converts these to SMSs.
I have also seen some people use a phone (or a PCMCIA card) connected to the PC to build their own gateway - it all depends on if you can find a phone that you can connect in this way...and have the patience to tease it into life. Chances are you will need to do some JNI too.
hope that helps,
matt
sonork [100.10146:bishboy]
|
|
|
|
|
I want to develope java application taht have an interfce. This application will be run on all those OS which java supports e.g. Windows, Unix, Solaris ...
Which classes i use to design interface that will be good for all OS.
I also want to create text file in this application on C drive in any directory. How i handle the path slashes in different OS.
|
|
|
|
|
I am developing a java application and i want to get the Operation System Info. that which OS in installed on machine.
|
|
|
|
|
System.getProperties(System.out)
then you can find your os type.
|
|
|
|
|
Anyone know an easy way do get the "client area" of a JFrame? I'm not using a layout manager. I need to know the size of the window *not* including the title bar. I'm writing code in the constructor of the frame. I tried getInsets, but it always returns 0's.
Thanks,
sbl
|
|
|
|
|
I don't think a container has a size or position at this point.
|
|
|
|
|
You are correct. I just had to set the size to arbitrary values (10,10,10,10) and show it. Then getinsets returned the proper info. I then just hide it, size it correctly and carry on.
Thanks,
sbl
|
|
|
|
|
Hi
I have tried to put som images on my applet. This works fin in the appletviewer but when i try to view it in a Browser no images i shown. Can someone tell my why ?
Best regards Lars
|
|
|
|
|
Hei
it might be because appletviewer is configured to use the vertual machine , which sun ships with the JAVA interpriter .
However the browser (i think u using internet explorer)has inbuild virtual machine,JVM 1.0 .
Ur code uses Newer classes , i.e. java 1.2.0 and above.
solution :
1. use older classes
2. use java pluggin .
if u have any doubts , mail me at
pushp_i@hotmail.com
and put subject as 'codeproject'
i am pushpi from india
|
|
|
|
|
Not Prety Sure Why?,
Check your ""Codebase"" property of the Applet tag
|
|
|
|
|
how do i open a bitmap?
it would seem that java doesn't recognize the file format.
is there another way of getting the information besides getting the pixel colors one by one from the file, possibly an existing class that does that for me? if there isn't can anybody help me out?
|
|
|
|
|
I have written a Zip program on Java which has a main function.
public static void main(String[] args)
Once I compile and run it it works fine.
It zips up a folder's content and uses the name of the folder to name the zip file.
ex:
c:\jdk1.3.1\bin\java Zip temp
The program works fine, However, I've tried to use this program on ASP.
How do I call the main function on the Java program from the ASP?
<%
Dim objZip
// Create an instance of the Java Object
Set objZip=GetObject("java:Zip")
????? How do I call the main function ???????????????
//Destroy the object
Set objZip = Nothing
response.write "end of file"
%>
Thanks
Jorge
|
|
|
|
|
Hello!
Read this article...http://support.microsoft.com/support/kb/articles/Q167/9/41.ASP
Ullas Dastakar
|
|
|
|
|
In the code of the ActiveX control, an instance of a MFC DLL component is created. Moreover, this ActiveX control passes its IDispatch interface using CCmdTarget::GetIDispatch( ) to the DLL component instances it creates. Likewise, in the code of that DLL component, an instance of this ActiveX control is created. Upon receiving the IDispatch interface of the calling ActiveX control, the DLL component will use COleDispatchDriver::AttachDispatch( ) to attach this IDispatch interface to the ActiveX control instance it creates. This way, a 2-way communication channel can be created between the caller ActiveX control and the callee DLL component -- the caller ActiveX control instance can access those various methods/properties of the callee DLL component instance and the callee DLL component can also access those methods/properties of the caller ActiveX control.
Now it comes to JavaBean, I have already succeeded in creating an instance of that DLL component in Java and it should not be a problem for the DLL component to create an instance of my JavaBean component. But I don't know how to find the equivalent mechanism for passing and attaching the IDispatch interface of the ActiveX control? Does JavaBean also have a similiar stuff? If not, is there any way to achieve the same result with JavaBean?
|
|
|
|
|
Hello everyone,
Well I m a novice into this JACOB API. I downloaded
the software which acts as a bridge b/w Java and COM.
Its downloaded from the website -
http://users.rcn.com/danadler/jacob/
Can anyone lend me a helping hand please ?
But the main problem is that there is no
API DOCUMENTATION of JACOB to b precise apart frm MSDK
for Java/ Sun SDK for Java.
So if i want to know vich functions have to b used
and all how am I goin to find it out.
Can anyone please help me reg. this.
Also I downloaded this for I wanna call and use
functions of a COM dll viz. Win Media Player's DRM
API.
Its windows platform based. I wanna use that in java.
Anyone who has worked on that ? To give a brief intro
abt tht its basically a Digital rights manager for
securing streaming media in a B2B framework. I wanna
do tht urgently so please i request anyone to come out
with a helping hand for how to use JACOB and that API.
I wud b very grateful.
Thanking You,
Shamant. - Java Developer.
|
|
|
|
|
Hello everyone,
Well I m a novice into this JACOB API. I downloaded
the software which acts as a bridge b/w Java and COM.
Its downloaded from the website -
http://users.rcn.com/danadler/jacob/
Can anyone lend me a helping hand please ?
But the main problem is that there is no
API DOCUMENTATION of JACOB to b precise apart frm MSDK
for Java/ Sun SDK for Java.
So if i want to know vich functions have to b used
and all how am I goin to find it out.
Can anyone please help me reg. this.
Also I downloaded this for I wanna call and use
functions of a COM dll viz. Win Media Player's DRM
API.
Its windows platform based. I wanna use that in java.
Anyone who has worked on that ? To give a brief intro
abt tht its basically a Digital rights manager for
securing streaming media in a B2B framework. I wanna
do tht urgently so please i request anyone to come out
with a helping hand for how to use JACOB and that API.
I wud b very grateful.
Thanking you,
Yours faithfully,
Shamant Ayyar,
Java Developer.
Thanking You,
Shamant.
|
|
|
|
|
I have a javascript with a drop-down list from which the user
may select one from a number of options. I would like to be able
to have an external app perform the same selection under certain
conditions. Is there a way to communicate with a javascript.
Also I should also note that this javascript is operating within the context of an HTA. Thank you.
|
|
|
|
|
hi out there,
i've the following problem. i wrote an image-wrapper (awt.image), using the class pixelgrabber to access the pixels within the image. netscape (4.7) seems to change all colors to different gray-values instead of the real color while ie 5 is doing all work fine. does anyone know a solution to this problem...
thx 4 help,
pHreak.
|
|
|
|