java

Tomahawk datascroller next en previous

Hi guys Mr Noob here again; Im using tomahawks datascroller to page though data in a datatable. I have two facets, next and previous defined. I noticed that the as soon as there is data to be paged, that the next and previous buttons appear, regardless. ie, if you are on the fist page, previous is stil shown, and if you are on the last p...

dcm4che Query/Retrieve SCP

Hi! First of all, I'm new in dcm4che and without a good Documentation is difficult to begin, therefore excuse my ignorance. I've to develop a Query/Retrieve SCP and I need to know the query parameters, in the doCFind function, entered by the SCU. Example: SCU does: dcmqr MYQR@localhost:10001 -q PatientName=Manuel How can I catch the q...

Ant is using wrong java version

I'm using ant 1.7.0 and installed java 1.6 which is in JAVA_HOME. I want to build a project using java 1.5 so I've exported JAVA_HOME to my java 1.5 directory. java -version says 1.5 When I run ant it uses java 1.6 Any help? Thanks ...

JBoss Seam - ViewExpiredException

Hi, I currently have a web application which acts as a Portal. Users log onto the Portal and are shown a list of services. To view a service, an iframe is populated in the same page pointing to the URL of the service. All applications are Seam 2.1.1GA on JBoss 4.2.2GA AS. If a user loads up Service A, interacts with it, then switches ...

When is sql distinct faster than java programming 'distinct'

If I have a sql query that uses 'distinct' (in oracle), would it be faster than retrieving the non-distinct then getting the unique results via java programming? I heard somewhere that oracle sql distinct is heavy, but is it heavier than manual 'distinction' via java programming? Thanks, Franz ...

how to write join query in hibernate

I have created two beans User and VirtualDomain with many to many relationship @Entity @Table(name = "tblUser") public class User implements Serializable { private Long id; private String username; private Set<VirtualDomain> virtualdomainset; @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.AUTO) public Lon...

Java library to do time series analysis

I need to do some analysis of an arbitrary amount of time series in Java. Among others i need to be able to use Linear regression, various smoothing techniques, filtering, etc. I'm not very keen of writing all this from scratch so, do you know of any good Java libraries for these kind of analysis? Edit: R- Seems like an good choice....

Java: What's the reason behind System.out.println() being that slow?

For small logical programs that can be done in a text editor, for tracing I use the classic System.out.println(). I guess you all know how frustrating it is to use that in a block of high number of iterations. Why is it so slow? What's the reason behind it? ...

A good place to put autogenerated code?

We have bunch of autogenerated classes which are mostly Axis2 stubs, skeletons etc. For some complicated wsdls, Axis2 generates a TON of java-beans, stubs etc. And I am sure there are other cases too when auto generation is used. For now we treat these as other first class members of our code-base and they are stored in the same package...

How to execute some function in eclipse while debugging a java program?

Like firebug for debugging javascript, is there such a feature in eclipse? or do I need a plugin? ...

Documenting Business Logic using custom tag in JavaDoc?

Is it possible to create a list of notes from a custom defined tag using JavaDoc? I have a business rules I want to flag throughout the code and it really doesn't fall under any of the existing tags that I know of. I suppose if there was a tag that did something similar to: @note logic - You can only have twelve widgets in this containe...

Has anyone successfully deployed Sonar on Jetty 7 ?

I am trying to deploy Sonar (automatic code monitoring tool) on a Jetty 7 servlet container. I would like to use the default config first (embedded Derby DB) as a POC and transition to a production grade DB later. So far I have tried various ways to make this work (todo: document failed attempts) without any luck... Did anyone manag...

how to parse this string in java?

"prefix/dir1/dir2/dir3/dir4/.." how to parse the dir1,dir2 .. value out of the above string in JAVA? The prefix here can be : /usr/local/apache2/resumes ...

Is there a url rewriting engine for Tomcat/Java ?

How can we provide URL-Rewriting support for Tomcat/Java ? mod_rewrite provides this functionality for Apache and can modify URLs even before they reach the handler (e.g. PHP). Is there a similar tool in Java/Tomcat ? To be more specific we need modifications such as http://www.somedomain.com/person/1 Maps to http://www.som...

what is the Best approach for writting automation tests for JAva web applications

I have found out that for java automation testing better approach would be to use Cruise Control(java), JUNIT (java testing framework) along with Watij. Any further suggestions please. Any one who has succesfully integrated these tools and what limitations are found for this. regards ...

What is the sense of "Feature Oriented Programming" (FOP) in C++, and would it make sense in Java and C#?

Hello! Sadly, I can't remember where I read it, but... ...in C++ you can derive a class from a template parameter. Im pretty sure it was called Feature Oriented Programming (FOP) and meant to be somehow useful. It was something like: template <class T> class my_class : T { // some very useful stuff goes here ;) } My questions abo...

Deconstruct an SQL Statement in Java

I have some legacy SQL and I want to split it up into it's constituent parts & then add more criteria, an order by clause, etc. Are there any existing Java libraries out there that interpret SQL like this? So I want to do something like deconstructedSQL.getCriteria().add("price > 100"); or deconstructedSQL.getOrderBy().add("price")...

Java Jar Class Not Found Exception

I can build my application cleanly on windows and Mac OS X but on windows when i try to run the application i get a class not found exception about my main class main$4 not found. class is there and it build cleanly. why can't it locate the class file? Jar works in OS X. Jar is created like the following. <target name="jar" depends...

How to analyse which jar file is used in a JAVA program?

Suppose there is a jar file named callme.jar and it's located in several directories, how to analyse which one of them is used at run-time? ...

Composite Strategy pattern - java - How bad is this code?

This question is kind of continuation to my earlier post: http://stackoverflow.com/questions/944824/visitor-pattern-implementation-in-java-how-does-this-look I got a bit confused while refactoring my code. I am trying to convert my visitor pattern (explained in the prior post) into a composite strategy pattern. I am trying to do somethi...