As I already have application.properties, where the database connection settings are defined, I decided it is good to put my application-specific settings in that file too. A step further - as spring reads those properties, I declared my Settings bean as follows
<bean name="settingsBean" class="com.tickets.constants.Settings">
<prop...
Hi,
Suppose i have a month, day and year select. One select for each one. And now i need to bind them to a single backing bean property - java.util.Date. How do i get my goal ?
...
Hey,
i need to run a cpp propgram from a java application.
I have Visual Studio and Eclipse.
I have all of the cpp files and also a .mak file which i'm not sure about how it could help me...
any help or direction would be welcome!
...
Editor application reads MSword doc into HTML format. All lists ( new paragrafs with bullets in a begginging in Word file) are read as
“<li>+ contentString+”</li>”
On the interface the text is displayed in text area and when user is deleting the bullet from list, caret skips the bullets and delete the character preceding it.
Please...
I have the entity classes below. When a user first signs up, only the username and password are supplied, so the list of accounts (think profiles) is empty. Later, when they add an account, the user object is updated in the client, passed to the server, and then entityManager.merge(user) is called. When the user is merged, the account...
How do I get a reference to the Tomcat Executor instances running within the web app? I need this so I can query basic information, such as thread pool size and utilization.
...
Hello
I have program consisting of a number of classes. I have a problem with the interraction of two of the classes - WebDataCache and Client. The problem classes are listed below.
WebData:
This is just a data class representing some data retrieved from the internet.
WebService:
This is just a web service wrapper class which connects t...
Hello.
I have a bean, say manager, which is used all over my application for remoting. The bean is using httpclient which in turn can be configured with or without proxy. But this configuration can be only one. What i want in my application is: when the application started, the user is asked does she want to use a proxy or not? And depe...
Is there a way to map collection size in dozer?
class Source {
Collection<String> images;
}
class Destination {
int numOfImages;
}
...
Hi all,
i just have a quick question about concurrent programming in Java.
for example,
i have a NxN matrix, and there is a corresponding thread for each row of the matrix, if there is no interaction between threads in each row, is it safe (or correct) if multiple threads access and modify separate rows of the matrix simultaneously?
Than...
Hey There!
I'm looking for help/advise with creating simple JSP website using equivalent of PHP include+switch function.
The goal is that I want be able to switch between multiple JSP include pages in one main page.
What will be simples possible form of above 'function'?
Many thanks!
...
I am planning to use this schema in my application, but I was not sure whether this is safe.
To give a little background, a bunch of servers will compute results of sub-tasks that belong to a single task and report them back to the central server. This piece of code is used to register the results, and also check whether all the subtask...
I define a class, and then I instate an object of that class type. I want to send this object to another Java application running on a different computer transparently. What is the best technology to accomplish this?
...
I'm trying to spot-test an Oracle backed database with hsqldb and dbunit, but I've run into a snag.
The problem is with the following EJB-QL (simplified a bit):
SELECT o
FROM Offer o
WHERE :nowTime
BETWEEN o.startDate AND o.startDate + 7
This seems to only work in Oracle's version of SQL.
What's the easiest way for me to conver...
Hi! I have a question.
I have a list of names, say 8 names: Joe, Bob, Andrew, Bill, Charlie, Sarah, Ann, Victor
The count of names might differ**.
1) What should I use as name list? Hashmap, Vector, Hashtable, List, ArrayList?
2) I need to match them up like this: Joe-Bob, Andrew-Bill, Charlie-Sarah, Ann-Victor. Could you please sho...
Okay, so I'm making a online fighting game and the dialog where you input the server IP keeps popping up again and again even though the code only asks for it once. It's not in any kind of loop though, so I dunno what's going on.
public void connectAndInit(){
try{
String ip = JOptionPane.showInputDialog("Input serve...
How can I view a JWS apps stack trace?
...
Hi experts... we have a java server-client application with an applet in the client side.
our applet seems to be used by attackers for bots and other attacks... we suspect that they modified it and used it.
because we use strongly encrypted packets they can do that in only two ways:
1.modify our applet and use it against us in someway...
I have written an interpreter that requires me to perform 32-bit division of unsigned integers. In Java, I can do this as:
reg[a] = (int) ((reg[b] & 0xFFFFFFFFL) / (reg[c] & 0xFFFFFFFFL));
But I would like to avoid the conversion to long and back to int. Java already gives the unsigned right shift operator >>> for that special case, s...
I had two java classes class A and class B in the same package now i made two objects of class A inside class B and Now From Within class A i want the name of objects of Class A declared inside class B.
...