java

Tools for java web applications?

What are the different ways to create a web-application in Java? Are there tools available other than straight-up servlets? ...

can i copy a directory from one place to another place directly?

Because many method which i have used does this, but they ll ultimately end up in copying each file by it conetents? as i have text files with lots of contents i will be a slow process? ...

WiiuseJ - are orientation values from library correct?

Hello, i just teste WiiuseJ library which is a binding for Wiiuse lib and i've noticed some strange thing with the orientation values. If you hold the wiimote straight the angles are 0, 0, 0 (ignore yaw, i don't use sensor bar) The thing is when i rotate the wiimote around the Z axis (roll) it goes to 90 degrees, that is correct, but ...

Additional, unspecified fields being added to a query

I have some queries being run in a java program that makes use of a PostgreSQL database and some parts of an old version of JDataStore (the parts used to interact with the database). Sometimes the queries are sent to the database twice from one execution of a query. What's even more odd is that the first query sent is slightly different ...

invoking method using Reflection Utils

hi, i want to invoke a method using reflection. i am having two projects AA and BB. AA has dependency on BB but BB does not have. Now the use case is that i have to call a class of AA from BB. can any one suggest me how to do that.. i have used ReflectionUtils class for the same.. Method getMethod = null; getMethod = ReflectionUtils....

Web Services vs EJB vs RMI, advantages and disadvantages?

My web server would be overloaded quickly if all the work were done there. I'm going to stand up a second server behind it, to process data. What's the advantage of EJB over RMI, or vice versa? What about web services (SOAP, REST)? ...

"Header" Views and buttons: how do I attach listeners to Buttons in a "header" that does not have its own Activity?

Hey, I have touched on this question here, where Christopher gave an answer to this, but I dont really get it so I thought its time to make it a real question, not just a "follow up" =) As it stands, the application Im writing has 4 different screens: 1. Screen 1 - list of nodes (main screen) 2. Screen 2 - options menu, tableLayout w...

The ultimate Java version table (J2EE, JEE, Servlet, JSP, JSTL)

I'm looking for a component break down of Java EE (or previously know as J2EE) and J2SE E.g. J2EE 1.3: Servlet 2.3, JSP 1.2. JSTL 1.0, ... J2EE 1.4: Servlet 2.4, JSP 2.0, JSTL 1.1, ... JEE 1.5: Servlet 2.5, JSP 2.1, JSTL 1.2, ... In a simple table It can be extracted from: http://java.sun.com/j2ee/1.3/docs/ , http://jav...

How do you structure a java program?

For quite awhile I have been trying to make a simple "game" in Java that is really just an applet with a square and a grid. What I want it to do in the end is the user clicks and the square will move to where the user clicked rounded to the nearest grid square. The problem is I am a self taught beginner and I am having a hard time figu...

Correlation between JEE / J2EE to J2SE / JDK versions

I was certain that I'll find a duplicate question or a satisfiyng answer, but I haven't. What I'm looking for is the answer to these questions: Is there an official correlation between JEE / J2EE and J2SE / JDK versions? If the answer is yes, where is it written? If the answer is no, then why? and is there an unofficial version table ...

clicking on submit button using php

Hi, I have a webpage with a submit button and I would like php to parse the webpage and click the submit button and get the response (it can be a link or another html page.) Is there any way to click a submit button using php? I know there is something like htmlunit for java that allows one to pro-grammatically fill the form fields an...

Stateless Session Beans vs. Singleton Session Beans

The Java EE 6 Tutorial says: To improve performance, you might choose a stateless session bean if it has any of these traits: The bean’s state has no data for a specific client. In a single method invocation, the bean performs a generic task for all clients. For example, you might use a stateless session bean to send an ema...

Matching substrings from a dictionary to other string: suggestions?

Hellow Stack Overflow people. I'd like some suggestions regarding the following problem. I am using Java. I have an array #1 with a number of Strings. For example, two of the strings might be: "An apple fell on Newton's head" and "Apples grow on trees". On the other side, I have another array #2 with terms like (Fruits => Apple, Orange...

velocity framework on google app engine

i am trying to use velocity framework on google app engine. i wrote a small program with a main method and tried running it locally. i get the following exception : Exception in thread "main" org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.ServletLogChute with the curr...

How to read GalContact.db

What is the format of GalContact.db that used by MS communicator. I want to create a small program in java to read the file. AND/OR is there anyway to convert it into csv file? ...

Date Picker / calendar UI Component with draggable date ranges

I'm looking for a datepicker control (HTML + JavaScript / Flex) that allows selecting a range of dates by dragging along the calendar dates (just like in Google Calendar or Outlook) It can be open source (preferable obviously) or commercial, and should be server technology agnostic. Outlook date range selection Google calendar d...

Rich Filesystem

My company downloads numerous files on a daily basis via ftp. Currently these files are stored in a fairly large file hierarchy, which is cumbersome to navigate. In addition the files often have meaningless names making them difficult to identify. We are considering building an application that presents a rich "filesystem" to the user...

TabHost inside of a Scrollview: always scrolls down when a Tab is clicked

I have an Activity which has a Scrollview as the top level element. Inside there are some other Views and at some point there is a TabHost. You might get a better impression by looking at the screenshot. The TabHost has three tabs, each with another Activity that are launched by an Intent. Everything is working fine except one thing. W...

Jboss Web Service:Error :java.io.IOException: Could not transmit message

Hi I am trying to deploy a web service client application in Jboss 4.2.3GA. I already did this and it works in glassfish v2.x. I copied jboss-saaj.jar, jboss-jaxws-ext.jar, jboss-jaxws.jar, jboss-jaxrpc.jar and jaxb-api.jar. Can someone please shed some info? Also I deployed this in netbeans 6.7. # Caused by: java.io.IOException: Could...

How to access 3rd Party cookies in the Browser ?

How to access 3rd Party cookies in the Browser ? ...