include directive and <jsp:include> attribute name problem
Hi, Why in JSP we write attribute name as file in include directive, but as page standard action? ...
Hi, Why in JSP we write attribute name as file in include directive, but as page standard action? ...
I've had this troubling experience with a Tomcat server, which runs: our Hudson server; a staging version of our web application, redeployed 5-8 times per day. The problem is that we end up with continous garbage collection, but the old generation is nowhere near to being filled. I've noticed that the survivor spaces are next to inex...
We have the following architecture in mind: To an existing application, we would like to add a web service front end. The web service will be used from a web portal, which runs on a different web server. So, we will not use a database on this different web server and just forward entries from the web portal to the web service and show...
I'm writing a function which generates all paths in a tree as xpath statements and storing them in a bag below is a naive (sorry this is long) and below that is my attempt to optimize it: /** * Create the structural fingerprint of a tree. Defined as the multiset of * all paths and their multiplicities */ protected Multiset<String> cr...
I have a small system consisting of a .net client and a java web service. The .net client inserts an object into the database, and then calls the web service. The web service tries to retrieve this object using hibernate. First time it works fine, but every other time it says that there is no object with the given identifier. I have ch...
When I read certain JPG files, colors are flattened. Here is a simple example that reads a jpg and just writes the same image to another file. import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class JPegReadTest { public static void main(String[] args) { if (args.length == 2) { ...
Someone please help me in choosing whether to use hibernate or cayenne in the comparison between the two in terms of how they handle large databases. That is which is more suitable to handle large databases. Thanks ...
I am using the NetCDF 4 java library from unidata to read GRIB2 files and am now trying to find a way to get timezone offsets for a given latitude/longitude. I have a .flt file for the northern hemisphere that contains all of this information and I know how to read it, I just don't know how to do the map projection properly. I am able...
Hi guys, what is the easiest way to merge two flv videos into one? Would be awesome if its possible without command-line-tools like ffmpeg. It would be great if someone knows a simple java solution =) (on the server side) ...
I've been trying to create custom web services within liferay 5.2. My web services do not access the db, but they call other services and return custom objects. My liferay axis servlet is complaining because I have no serializer for the web service return type. Is there a simple tutorial on achieving this? I just need to make sure that ...
Hi, i'm trying to develop an interface like Windows Task Manager -> Performance Tab using Java. Can you suggest any Java Graphic Library to ease my development ? ...
Hi, I'd need to read and process somewhat large file with Java and I'd like to know, if there is some sensible way to protect the file that it wouldn't be overwritten by other processes while I'm reading & processing it? That is, some way to make it read-only, keep it "open" or something... This would be done in Windows environment. ...
I'm currently using JAXB to generate java classes in order to unmarshall XML. Now I would like to create a new schema very similar to the first and have the classes that are generated implement the same interface. Say for example, I have two schema files which define XML with similar tags: adult.xsd <?xml version="1.0" encoding="UTF-8...
I'm capturing the Stream from a webcam and would like to draw something on top of the video image. I try that in the example below, the problem is that the other component is always in the background no matter how I arrange the components. Is there a way do solve this? public class SwingCapture extends JPanel { private static final...
Hello, I am trying to decode some UTF-8 strings in Java. These strings contain some combining unicode characters, such as CC 88 (combining diaresis). The character sequence seems ok, according to http://www.fileformat.info/info/unicode/char/0308/index.htm But the output after conversion to String is invalid. Any idea ? byte[] utf8 = {...
As like in .NET based webservices maxarraysize can be set in web.config file, is it possible to do the same in java?? If yes,then in which file I have to make the change? ...
I want to develop my GWT Widget. This widget draws Gantt chart and has drag - drop property. It will be simple form of Deskera Where can I start to develop this widget? Any advice? ...
Hello My small utility application asks the user for an output directory via a GUI file selector. Then it creates a lot of files in this output directory after some processing. I need to check if the application has write access so that it informs the user and does not continue with the processing (which might take a long time) My fi...
In my settings.xml file I have listed repositories that I want Maven to use (see the file below). These repositories are located in the build machine and I am working this way to prevent a build fail when there's is no Internet connection in the build machine. The problem is that Maven automatically looks for updates in the central repo...
Hi Everyone, Riddle me this: I have a JTabbedPane that has custom JPanels in it. When I try and access those JPanels, all I get back is null. I know that the panels have been added because on the UI I can see the tabs. I can also interact with the panels and switch between tabs. It doesn't matter how I add these JPanels, it always return...