Hi,Is there a way to get domain logged user name using NTLM authentication into JSF page.Please provide any solution on this ?
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 ...
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 ...
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. ...
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 ...
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.
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 ...
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
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 in a web Application
71 byte By
sitha at 2007-11-27 4:04:31
Prompt please, what values should be at constructor AudioSystem.
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
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 ...
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 ...
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 ...
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"); ...
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 ...
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 ...
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 ...
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 ...
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
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?
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 ...
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? 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 ...
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
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 ...
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 ...
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 ...