Using NTLM authentication

147 byte By KirshnaMiriyalaa at 2007-11-27 3:35:37
Hi,Is there a way to get domain logged user name using NTLM authentication into JSF page.Please provide any solution on this ?

Realizing... but never Realized

995 byte By Kirk@itin.fra at 2007-11-27 3:37:13
Hello, thanks to a tutorial I have write a few weeks ago a sample program to capture my webcam.Yesterday evening I have tested my litle program (called ReadOnDevice) and it was still working.This morning (French meridian) I wrote a 2nd program using a big part of the first one but I never ...

How to create manual key for AES with 256 key size

348 byte By bunty4ua at 2007-11-27 3:39:44
we are just finding Different Approch for secure Key Genration and Store.For security purpose which way would be secure to store key in database and retrive that key.And can u tell me how to create secure maual key.Database user has access they should not able to find the what key we are using ...

Save and retrieve SecretKey from file

376 byte By Ren@toa at 2007-11-27 3:40:33
Hi, my application encrypts personal informations in medical files and store them in a repository for retrieving and decrypting at a later time.The encrypt and decrypt functions (using DES) work perfectly, and now I have to save the generated SecretKey to a file and retrieve it when decrypting. ...

confused about image dpi.

1263 byte By pir8ped8a at 2007-11-27 3:41:56
Hi,I have been using ImageIO.write(wheelImage, "png", new File(fileName));to create images which are then used on web pages. I then wanted to create the same image files but with a higher resolution so that I can use them for printing ( the images I printed out from the files created with the ...

A/V synchronization algorithm

264 byte By pringia at 2007-11-27 3:42:36
Hi everybody!I've done some packets capture from a RTSP session.Can anybody tell me how can I check manually the audio and video packets synchronization?What I want is an algorithm that helps me check the synchorinzation.Thanks.

How can authorized user logout when using tomcat 6.0

343 byte By wai__a at 2007-11-27 3:42:45
I have implemented the login flow for user using standard authorization configuration in web.xml.However, I cannot find a way to logout so that user can login again using the another user account.I am using tomcat 6.0 and cannot find related information for logout process from tomcat doc. Can ...

Anybody made video from images please help

269 byte By jahansoza at 2007-11-27 3:43:06
HiI am new to JMF.I am trying to make a video from images.I tried a lot of code from this Forum.Some of them compile run and generate mov file, BUT I can not play it.If you have code that works please share.Thanks

With JMF I Can't Switch To Composite1 port.

1528 byte By peterkaricha at 2007-11-27 3:44:06
The main problem is:PortControler is not implemented!Look here: http://java.sun.com/products/java-media/jmf/2.1.1/issues.htmlSo If I do:Vector deviceList = CaptureDeviceManager.getDeviceList(new RGBFormat());if ( deviceList == null || deviceList.size() == 0){out("no capture device ...

SecureRandom Generator

710 byte By namon20a at 2007-11-27 3:44:55
I am trying to create Salt fo my passwords. This is my functionpublic byte[] generateSalt() throws Exception{random = SecureRandom.getInstance(SECURE_RANDOM_ALGORITHM);random.setSeed(System.currentTimeMillis());byte[] salt = new byte[8];random.nextBytes(salt);return salt;}I called this function ...

Windows vs. Unix

263 byte By ptsentera at 2007-11-27 3:45:37
I have a small routine to encrypt/decrypt passwords. It works fine on Windows. But Unix (Solaris) throws IllegalBlockSizeException. Where should I go from here?I tried to step into code, but it's hidden. I'm using NetBeans 5.5.Thanx.

is there more efficient painting out there?...

618 byte By born2snipea at 2007-11-27 3:46:29
I'm working on an application that allows the user to draw shapes (rectangle, oval, lines, etc) and they are able to resize the shapes as needed. When you drag a corner to resize the shape the cpu usage shoots up pretty fast! The way I have this setup is everytime a point changes the repaint ...

problem for games

2092 byte By nickgoldgodla at 2007-11-27 3:48:49
i am trying to make a game .Now i am starting form game menu,but it isn't work.import java.awt.event.*;import javax.swing.*;import java.awt.*;public class GameMenu extends JFrame implements MouseListener {ImageIcon icon;Image image; ImageIcon icon2;JList menulist;GameMenu frame;public ...

record MJPEG stream from Ip Camera

23172 byte By faivalina at 2007-11-27 3:51:07
hi all,I have some problems when I try to save the streaming data provided from my Ip camera to a file. I think it is the best way to record the MJPEG streaming in order to preview later the video from this file. I have three classes AxisCamera, to connect to the camera, preview the MJPEG ...

JAAS in servlet engine

846 byte By dirkdaemsa at 2007-11-27 3:52:53
Hi,I want to use an existing JAAS loginmodule in Tomcat. I don't want to use the built in JAASRealm functionality of Tomcat. In a JSF managed bean (called AuthenticationBean) I create a LoginContext and call it's login method. When the user logs out, the invalidate method of the HttpSession ...

Creating Token for Login Method

2752 byte By namon20a at 2007-11-27 3:53:58
I am writing a login method that will authencticate user and return token for web services. Next time user will send is token and we will validate the token but requirement is that we donot wnat to keep any state of token at server.What does it mean that when we receive token, we should be able ...

Adding ciphersuites

872 byte By WOOLOOLOOa at 2007-11-27 3:54:44
I am trying to work with SSL in Oracle 10. Unfortunately Oracle is packaged with JVM 1.4.1 and I need to use a cipher suite (TLS_RSA_WITH_AES_128_CBC_SHA) that was introduced in 1.4.2.I've looked around a lot for ways to plug in new ciphersuites but haven't had much luck finding anything. In ...

start gamming problem(if post wrong i am sorry)

534 byte By nickgoldgodla at 2007-11-27 3:54:46
now i starting to make a game .now i have my menu page,but i don't know the structure of java file.what file should i have in the structure ?(eg.menu.java,main.java,?,?)if there must a main.java, what is main.java use for?and what is the main structure code?i ask this question because i saw ...

SSL using certificates retrieved with Sun MSCAPI provider

2821 byte By dj242a at 2007-11-27 3:54:59
We are having a problem with establishing a mutually (client) authenticated SSL connection between Java clients and a server. The aspect of our solution that differs from much of the information we can find on Java and SSL connections is that we are using certificates that are in the Microsoft ...

java.lang.SecurityException: Prohibited package name: java.security

1740 byte By sakpaya at 2007-11-27 3:55:19
Hi, I am trying to use the standard security packges in JDK : import javax.crypto.*; import java.security.AlgorithmParameters; import java.security.Key; import java.security.KeyGenerator;andthe code :public static void main(String[] args) {try{ KeyGenerator keygen = ...

DETECTING CAMERA THROUGH CODE

423 byte By Leon_Goaa at 2007-11-27 3:55:45
HelloI have developed an application for real time video processing using JMF. Now my problem is that I would like to make detection of the web camera easy for the user. That is, without he having to go to the JMF Registry, I want to make it possible to detect his web camera. Please help me ...

Install JMF without administrative rights

337 byte By rvdba at 2007-11-27 3:56:53
Dear Allis it possible to use JMF on Windows XP (capturing from webcam) without installing JMF as administrator?We have networked machines available with Java and Processing running and i would like to use JMF, alas we don't have adm rights on the machines and thus cannot install JMF.Kind ...

Its driving me crazy....drawImage() help please

3099 byte By Java_seeda at 2007-11-27 3:57:04
Hi guys .. a set of fresh eyes is all I need... In the following program its very simple, but I can't make it work..I want to draw a simple image over a background ... the thing is it DOESN'T work, it only loads the image if I click on the frame or resize it....if I take all the listeners out ...

One-Way Communication between applet and servlet

483 byte By HenOYa at 2007-11-27 3:57:47
Hi,I am doing capturing an image from an applet and save it to the server. I did try 2-way communication between applet and servlet and it succeed.But actually I just need a one-way communication and I tried without getting anything from the servlet but i failed. It doesn't even go to the ...

Drawing Problem

661 byte By Jona_Ta at 2007-11-27 3:58:22
Hello Java2D Friends,I have a 2-dimensional Char Array. Each row contains a number of Chars which I draw as clique. My intention is during the first iteration, I draw the first row as clique of chars. The second iteration will draw both the first and second in different areas of my GUI, the ...

problem for games2

4489 byte By nickgoldgodla at 2007-11-27 3:59:22
i have the menu and i create more java file. i want to click new game form gamemenu and change the screen of Jframe to a playscreen.but it have a problem form the startgame() method.how to fixed this?Downstair.javaimport javax.swing.*;import java.awt.*;import java.awt.event.*;import ...

Make java act like a key is pressed.

213 byte By boozelclarka at 2007-11-27 3:59:49
is there any way to key java to emulate a key being pressed. i need it control a media player by using the media players shortcut keys. so when an event happens it will send a pre determined key to windows?

Mapping the mouse to an affinetransformed shape.

4308 byte By Richard_Cromera at 2007-11-27 4:00:01
Greetings,I am writing a drawing tool and using affine transform to place my shapes. The problem is, I do not know how to map the cursor such that it's coordinate space is the same as my shapes once I have transformed them. Can anyone help me? Below is a simplified example. If you compile and ...

3D applet deployment -- download extension

560 byte By senore100a at 2007-11-27 4:00:03
Hi, I need to deploy an applet using Java3D package. Trying to avoid the installation hassle (on the client side), I want to put the three packages available on the server (j3dcore.jar, j3dutils.jar, vecmath.jar), and then add the class path of these jar files in the manifest of the applet jar ...

GSS: Mechanism level: Failed to find any Kerberos Key

8276 byte By sun@slushpupie.coma at 2007-11-27 4:00:24
Im attempting to do a GSSAPI SASL authentication (as a server) with a hostname that is exactly the domain name: slushpupie.com . It isnt working, even though the same application works when the hostname has more than one dot (like host.slushpupie.com) Ive managed to reduce the application down ...

How To Provide Authorization For Jsp Pages

70 byte By swathij_jangama at 2007-11-27 4:04:26
How to Provide authorization for Jsp Pages in a web Application

AudioSystem constructor !

71 byte By sitha at 2007-11-27 4:04:31
Prompt please, what values should be at constructor AudioSystem.

VK code for Enter

272 byte By boozelclarka at 2007-11-27 4:07:06
when i try the codeRobot r = new Robot(); r.keyPress(20); r.keyRelease(20);it works for all the VK values i found except for 20 for return, i jus get Invalid key code Eception. can any one tell me the integer code for enter?thanks

Jframe background for game problem

573 byte By nickgoldgodla at 2007-11-27 4:07:12
i want to make a background image on Jframe.and i want the background image change like a game (menu page to play game page)?How can i make a background image on Jframe?and if i want to make the above effect. what thing i should now about it?are there any simple method to do this?do anyone know ...

java.security.AccessControlException: access denied (java.lang.RuntimePerm

3567 byte By PaganBa at 2007-11-27 4:07:15
Hi, I am receiving the following error when I attempt to add a crypto provider. java.lang.ExceptionInInitializerErrorat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)at ...

JMF and keylistener

397 byte By emanuele.ga at 2007-11-27 4:07:34
I guys, i'm new in jmf (fobs)world. I have coding a simple video player. My question is:is it possible to stop/play/pause the video whit keyboard? I'm thinking about keylistener but while the video is playing i can't I am not able to access the function to stop the video flow (is JMF ...

How to Store Private/Public Key in Keystore

959 byte By namon20a at 2007-11-27 4:07:47
I can not simply make sense of this KeySTore Class.I have private and public key and I simply want to use them in KeyStore to use later.KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN"); ...

Draw images (arrows) along a path

554 byte By williwa at 2007-11-27 4:07:54
I'm trying to draw a set arrows along a path like on a map, I have the begin and ending coordinates.I tried to draw a stroke with rectanglur shape, then fill in the shape, but I couldn't get it work.The idea was inspired from www.jhlabs.com/java/java2d/strokes/The arrows need to evenly spaced ...

audioInputStream problem with socket

5029 byte By jperalaa at 2007-11-27 4:07:58
Hi,I know here is many topics which are close to my own but I can't find answer of them. I'm doing client-server program which can play sounds with streams. I want also play mic data which is coming from other computer. File sending from other computer works well. I have to receive many files ...

Basic animation - moving cards

10098 byte By _Spare_Ribs_a at 2007-11-27 4:08:02
Hi all,As I'm fairly new to java programming for games I thought I would try my hand at something simple like a 2D card game. The card game I picked was Canasta although you probably don't need to know that it might help you understand my method.The code sample is from one class of many ...

The logical problem in turnover in for ?

28885 byte By momosaaa at 2007-11-27 4:08:09
Welcome wrote this code, everything is true but there is a logical problem to be solved first idea of this program is a moving train to the contrary, it can stop and operated once again and that can add cars and locomotives and can delete it but there is a problem when adding that the train ...

Detects two or more usb webcam

182 byte By Pintoia at 2007-11-27 4:08:11
Hello i have two usb cam at my pc.But i can't use both with jmf what should i do? why capture device list only detects one cam?Please can someone help me?Thanks

integrating flash with java

244 byte By JAP43a at 2007-11-27 4:09:35
i have a form made with flash, and form handlers made with java. So how can i make it work. i have couple java packages that make the calculations from the values given in flash form.any good websites that have info about java and flash?

j_security_check using database

395 byte By Powerhouse_ba at 2007-11-27 4:09:57
Hi. I have just read the tutorial abut securing web applications. I saw you can use j_security_check and let the application server do the authentication. But in the tutorial, it said to define users using the AdminConsole.But i want to be able to register user, so i must use a a database where ...

crwood please come(every one can come too)

2511 byte By nickgoldgodla at 2007-11-27 4:10:11
hi crwood ,thanks for your suggestion of the structure.now i have this structure, but i don't know how to use Event class to handle a event.Do you have any exsample?now i try this code but the event handle part is not work.import javax.swing.*;import java.awt.*;import java.awt.event.*;import ...

How can you play music in an application?

818 byte By Chris1234554a at 2007-11-27 4:10:14
How can you play music in an application? I would like the music to change to certain events such as pressing a key. I have tried this way:AudioPlayer p=AudioPlayer.player;try{AudioStream as = new AudioStream(new FileInputStream("music.wav"));p.start(as);}catch(IOException ...

Parsing a DER encoded file

131 byte By hanane1a at 2007-11-27 4:10:25
Hello,I would like to parse a DER encoded file ; can any one forward me on how to do that in java.best regards

Play movie with subtitle..

798 byte By shay_tea at 2007-11-27 4:11:44
i am using JMF player to play moviesi have downloaded some codecs (jffmpeg)but one thing is missing displaying subtitles i been searching google but find nothingThere is something written all ready or should i start thinking how to do it my self.i am thinking about using a glass pane to draw ...

problem for drawimage

7510 byte By nickgoldgodla at 2007-11-27 4:12:06
i want to draw a image random and they are not stick together but i try that code it only have one image show up.how to do draw a image and they are not stick together too?and i have one more question how to make a image stand on other image . because i want to make a person walk on a ...

problem for Key Listener

9166 byte By nickgoldgodla at 2007-11-27 4:12:12
i want to make image mov e i do this code but there is no error and the image doesn't move.How to make it move?import java.awt.*;import java.awt.event.*;import java.awt.geom.Ellipse2D;import java.awt.image.BufferedImage;import javax.swing.*;import javax.swing.event.*;public class Downstair ...