I am trying to understand what's the correspondent of servlets and applets in .NET but I don't have much experience in JAVA.
I am thinking applets could be compared to the silverlight stuff, meaning you code independently from the browser, but then it's not like that since (between other things) you can re-use an applet outside the brow...
I am having problems using Gzip compression and JQuery together. It seems that it may be caused by the way I am sending JSON responses in my Struts Actions. I use the next code to send my JSON objects back.
public ActionForward get(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse r...
We've gotten a homework assignment in Java, which relates to inheritance. I don't have a problem with the programming in itself, but I'm a bit unsure about some of the math, and would like confirmation/corrections from someone a bit more knowledgable.
The assignment starts with a abstract class, GeometricObject, which is extended into t...
Given the following input string 3481.7.1071.html
I want to confirm that
The string has 1 or more numbers followed by a period.
The string ends in html.
Finally, I want to extract the left-most number (i.e. 3481).
My current regex is nearly there but I can't capture the correct group:
final Pattern p = Pattern.compile("(\\d++\\....
Hi,
I'd like to drag and drop external files (e.g. from windows explorer) into a JTable. Anybody got some example code as how this is done?
...
Basically I am attempting to control a win32 app (press a button, add stuff to a text field) etc from a java app.
Whats the best method of attempting this (i.e are there any toolkits, DDE?) or will I have to attempt to do some sort of FindWindowEx, then send a WM_LBUTTONDOWN or something?
Cheers
...
I have a Java program running on Windows (a Citrix machine), that dispatches a request to Java application servers on Linux; this dispatching mechanism is all custom.
The Windows Java program (let's call it W) opens a listen socket to a port given by the OS, say 1234 to receive results. Then it invokes a "dispatch" service on the serve...
I haven't done enterprise work in Java, but I often see the reverse-domain-name package naming convention. For example, for a Stack Overflow Java package you'd put your code underneath package com.stackoverflow.
I just ran across a Python package that uses the Java-like convention, and I wasn't sure what the arguments for and against it...
We currently have batchjobs in Java that proces mulitple (sometimes large) files.
These jobs can take some time to run. We run these files directly in the JVM, using Java Threads that continuesly run in a loop. (proces files and then wait a while).
Now the company I work for, wants to run these jobs in the Weblogic application server. N...
Continuing with the post at
http://stackoverflow.com/questions/705672/regular-expression-to-allow-a-set-of-characters-and-disallow-others/705990#705990
Does anybody know why the below would occur?
I get the below error when I create a regular expression as:
[^@*–’”“\r\nœçsÇSgGšcrŠRNEŽDTCnežuUIti—¿„”]+
and enter any of these restrict...
Hi,
I've been running into problem after problem trying to use the a third party HTML editor to do what (I hoped) was a simple operation. Because of these problems, I'm looking for recommendations for an alternative HTML parser I could use to perform the operations.
Here's my situation, I have span tags in my html (with an ID attribut...
Some of my colleagues are convinced that committing build artefacts to the subversion repository is a good idea. The argument is that this way, installation and update on the test machines is easy - just "svn up"!
I'm sure there are weighty arguments against this bad practice, but all I can think of are lame ones like "it takes up more ...
I'm looking for a CMS (content management system), where users can manage, create and edit online articles, as a part of an application to be developed. The application to develop is a web application running on Tomcat, with a PostgreSQL connection and using the Spring web framework. I'm looking for a CMS, which can be seamlessly integra...
Why wasn't the .clone() method specified in the java.lang.Cloneable interface ?
...
I'm hoping someone can help me understand how to work with the object returned by a call to DirContext.lookup.
The following code snippet works and returns an object. I just can't figure out how to get the attributes from the object.
javax.naming.directory.DirContext ctx =
javax.naming.directory.getContext(false);
Object o = ctx.lo...
I am creating an application that is essentially a financial alerts site. I am a basic level Java programmer, and I have created some of the logic for alerts in Java.
I want to be able to have pop-ups appear on the desktop whenever something "interesting" happens (interesting depends on %change, liquidity and a few other simple factors)...
I don't know, but I feel that IllegalStateException is causing undo headache. If I have a request say a JSP or some other servlet and need to associate a filter with that request. I can't do any other modifications to the output to the client if the response has already been committed?
For example, I see in JSP code that sets the mime...
I have generated an Interface which is very well documented. Every method does have his own JavaDoc. The clases which implement this Interface can have little differents in their logic.
How can i add JavaDoc to the existing JavaDoc from the super class. The key word
/**
* {@inheritDoc}
*/
only set the javaDoc of the super class to...
My Java application uses db sessions, via Hibernate.
What I want to do is somehow, when I create a session in my app, is to identify that session as an 'application' session. The reason is that I wish (via a before trigger) to restrict the updates that users can make to a table, while giving the application carte-blanche to do what it l...
Hey
We have existing projects set with compilation dependencies in a RAD7 IDE.
Is it possible to create automated build script from the existing project structure?
We have IBM portal projects and regular WEB and enterprise projects.
Maven and Ant are possible solutions but can we use these tools to build existing projects
from command l...