hi,
i'm working on a web based project and my requirement is to print an document using an applet running on client side on clients Epson Dot-Matrix printer..
i've used java4less TextPrinter apis im my applet class.
the applet works fine in one project and gives desired printing job for the same project..
but the same thing is needed...
Are there any such code coverage tools in Java that give the different paths in the program. Basically the idea is to ensure that all loops and nested loops are covered during execution. That is to be able to ascertain if all the loops in a code base have been executed at least through one iteration.
...
I am trying to set up a development environment to test Spring Portlet MVC for development of JSR 168 conforming portlets. I have the latest STS installed, which included Spring 2.5 and Eclipse (Catalina). This has been my environment to develop with Spring MVC, and that works fine using Apache as a local server for debugging.
I found s...
I am working on a project where we each service refers four separate data-source. Until now, we have been using ProxyFactoryBean to refer to the Dao target and the Transaction Intereceptor - something like this..
<bean id="readOnlyUserProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="read...
Hello
Does anyone know of training available on the web which highlights data synapse in a Java enviroment please??
...
If i write a text on SWT say "this text" in a particular font/style , i want the individual coords of 't' 'h' 'i' 's' and so on. Is there any way to obtain the same.
...
I am using the toString method of ArrayList to store ArrayList data into a String. My question is, how do I go the other way? Is there an existing method that will parse the data in the String back into an ArrayList?
...
hi,
can someone please tell me the elegant way of inserting a java date instance into database?
presently, i am using IBATIS with Spring MVC .
i have defined a java.util.date property in the command bean and property editor in the controller for Date conversion, however i am unable to insert java.util.date property in DB .
should i c...
Please give me the sample on quartz scheduler using thread pooling in java
...
I have the servlet name ExampleServlet.java which have only init method with HttpServletRequest and HttpServletResponse parameters. I will forward the request to another servlet named ForwardedServlet.java which will display some text on the web page. But when i am trying to execute the ExampleServlet http://localhost:8080/Sample/Example...
I am developing a web service from an existing framework.
Our framework has an abstract base class in package base and a derived class in package derived.
A service class creates an instance of the object derived but in the signature it is returning base type.
Here are the code snippets:
Base Class:
package base;
public abstract class ...
Can you recommend an open source Java library (preferably ASL/BSD/LGPL license) that converts HTML to plain text - cleans all the tags, converts entities (&, , etc.) and handles <br> and tables properly.
More Info
I have the HTML as a string, there's no need to fetch it from the web. Also, what I'm looking is for a method like this:
...
Hi,
I've been using Powershell-1.0 for command line needs for a while, instead of cmd.exe.
Unfortunately, there are still some caveats when using java.
I need to pass a property to a jar, like that:
java -jar -Duser.language=en any.jar
This line works fine in cmd.exe, but not in Powershell as it searches for another jar:
Unable to ...
hi all
i want to write a code for monitoring file changes and reacting to changes.
so i write a TimerTask to periodically check the modification of file
but i have a problem:
when file is open by other programs such as excel or word and i'm closing the file
without any changes,value File.lastModified() is changing.
i am also trying to g...
Hi
We build a Flex/J2EE application deployed in several site. When we update the application, we warn the client, shutdown tomcat, do our stuff, and warn the client client again that he can go back to work.
For now, it's fine : BUT, some of the client forget to restart they browser. So the .swf ( the flash part ) of our application rem...
We can extend a class but we cannot implement a class. We can implement an interface, but cannot extend an interface.
In what cases should we be using extends?
...
Hello
I'm using ehcache with hibernate and I'd like to use the blocking or SelfPopulating cache to avoid the issues presented in http://ehcache.org/documentation/constructs-0_5.html#mozTocId722946
An expensive operation is required, say rendering a large web page, which takes 30 seconds. The page is not considered stale until it is ...
I start my java code (1.6.0_16 in Vista) with the following params (among others) -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs. I run the code and I can see in the logs there are two OOM.
The first one I know cause I can see in the stdout that the hprof file is being created:
java.lang.OutOfMemoryError: Java heap space
Dump...
Hi StackOverflow!
I have several Beans in my Application which getting updated regularly by the usual setter methods. I want to synchronize these beans with a remote application which has the same bean classes. In my case, bandwidth matters, so i have to keep the amount of transferred bytes as low as possible. My idea was to create delt...
Any Java unit testing framework that supports writing unit testing code like this:
Collection<AType> myCollection = objectUnderTest.doSomething();
assertCollectionContainsAtleast(myCollection, "a Expected value");
Meaning what I would like is some sort of iteration support with some sort of matcher attached.
...