java

How to open a stream to httpS URL

Hi I want to open a stream to a httpS URL and read the data. Kindly let me know how to do it. Regards Chaitanya ...

ArrayIndexOutOfBoundsException not being caught and ignored

I want to catch and ignore and ArrayIndexOutOfBoundsException error (basically it's not something I have control over, so I need my program to keep chugging along). However my try/catch pair doesn't seem to catch the exception and ignore it. Hopefully you can pick out what I am doing wrong. The exception occurs at this line content...

Adding Arraylist object to hash table in java

hi how to store multiple arraylist objects in hashtable in java & how do i get it back. ...

Is DWR a MVC ??

I started reading about DWR few days back. Its strikingly different from the usual web-app technologies I have worked on till date (read as huge amount of Struts). One question that invariably comes to mind is can DWR really replace MVC ? One may argue about the usability of MVC but the more mature frameworks like Struts and JSF give lot...

Setting JVM parameters at runtime

Is it possible to change/modify/adding VM parameters after the JVM is already loaded (running)? If so, how can I do it? ...

how to dynamically specify data type while creating the table in MS access using Java

My application is extracting the data from excel sheet. I am storing the value and type of the data from the sheet into the ArrayList. ie., If my excel sheet consists of employee data, i will retrive [ Employee name, String] [ Employee id, number] and so on.. So i have to create a table with these names and with their respective data typ...

How to parse a file with several delimiters

Hi All i need to parse a file of this format,such that i can get/fetch the values present in place of those tags by avoiding linefeeds or "/n",carriage return 0r "/r",^^(spaces). just give me an idea with sample code such that it helps me in proceeding..... ^^^ M^^^COMPLD (^^^"[,]:,,, [], [], [], [] [, ] [:[], [] [, [,]] [:[][,]]]")* ...

Applet with JDialog not hiding correctly in Mac OSX

I have an applet that calls a JDialog that contains a JProgressBar component. I subclass the JDialog to expose a method to update the JProgressBar, something like: public class ProgressDialog extends javax.swing.JDialog { public void setProgress(double progress) { jProgressBar1.setValue(jProgressBar1.getMinimum() + (int) (pr...

how to write java program to acquire admin permission

Hi, I want to write a java program which will ask for admin permission (admin username and admin password). If I insert the correct information then i will receive an welcome message. how to write java program to acquire admin permission. I am using Fedora 10 linux. Thanks Sunil Kumar Sahoo ...

Invalid property exception in spring.

Hi All, I am using spring in my application , When i am loading the springApplicationContext to get the beans i am getting the errors Caused by: org.springframework.beans.InvalidPropertyException: Invalid property "abc" Even though there is a property abc and the setter for that property in the bean. This is a weird error i ...

128 bit key AES encrypting application in java

i need to create an application in java that would convert text strings into codes based on 128bit AES encryption.. ideally i would prefer that i only need to create a gui and the AES encryption part is already written. the application is need to be run in both linux and windows . kindly advice me on existing libraries and anything relat...

Oracle and Jdbc and OraclePreparedStatement#setPlsqlIndexTable and java.util.Date

I´m a little bit frustrated with my Java environment that didn´t allow me to call the method OraclePreparedStatement#setPlsqlIndexTable ... but i think i should write the code before... String plSqlBody = "some pl/sql procedure call" /* * The PL/SQL procedure parameter is here of type * TYPE t_date_table IS TABLE OF DATE INDEX BY PLS_...

how to create our own exceptions in java

hi can any one pls give me simple example for creating and using UserDefined Exceptions in java thanks in advance SS ...

Where do I have to use the & operator in PHP?

A few years ago I used to work with PHP and there've been many changes in PHP, especially on the OOP part. Back then it was necessary to use the & operator at several places, especially when working with object instances (OOP was very rudimentary then) to avoid copying object instances. With PHP 5.2 there seems to be a lot of improvem...

multiple http requests when processing streaming response using httpcomponents

I'm a newbie to http and Apache's HttpComponents API. I need to process a streaming response of an http request using Apache's HttpComponents, while there may be additional http requests made on that connection. For example, a POST request is initially made to http://mystreams.net, which later follows with additional requests, while ...

how fetch each field as a value frm file

how to parse this kind of response such that i can fetch each and every field as seperate value by avoiding all the delimiters as ::,-,;,\n,\r etc........pls give me an idea of doing such that i can proceed RTRV-HDR:::RH01; [2K SIMULATOR 09-11-18 13:49:03 M RH01 COMPLD ; agent>RTRV-EQPT::ALL:RE01; [2K SIMULATOR 09-11-18 13:49...

How to keep the filterBy value of rich:datatable in session scope?

Is it possible to keep the filterBy value of a rich:datatable rich:column filterBy="..." in SESSION scope? ...

Debugging Java code line by line

Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice. ...

Java Issue with Tree Selection

In my program, I have 2 JTrees and there is a common treeselection listener for both. The problem happens when I select a node in the first tree and then immediately select a node in the second tree.Now if I were to go back and select the same node in the first tree that was initially selected, nothing happens. How do I solve this? Is th...

Is there any popular Java webshop or shopping website opensource project?

Hello Guys, I am developing a shopping website, And Want to develop in Java (no PHP or anything other then Java). but unable to find any opensource project or anything. I tried SourceForge, oholo but did not get anything. For Reference, I am looking for something like OSCommerce (but in Java). Does anyone know any project which can be...