When going to Java Web Develpment such as JSP, JSPX & others.
What IDE do you consider Eclipse or Netbeans?
What are its advantages and disadvantages?
Which is better preferred in-terms of developing Web Applications such as Websites, Web Services and more. I am considering Netbeans because it has already bundled some features that w...
Hi folks,
I want to have a listener for a socket at the client side. I am using Android which is Java. I am using TCP/IP but I don't want to loop at the client side.
Is there any method for that or do I have to have my own mechanism for listening?
Any help would be appreciated. Thanks in advance,
...
I am using Jetty and Selenium to automate some unit tests from my Maven 2. We only really want to run these tests as part of the CI build and would like to control it via the -Dmaven.test.skip property.
I cannot find a way to apply this to the executions for the Jetty plugin. Am I missing something obvious?
...
Google Web Toolkit features gwt-RichTextArea, a simple but effective WYSIWYG editor. Now I would like to use this editor in my PHP application but don't know how to implement it. I'm not sure but it seems it's only possible to implement when you're using JAVA. Tell me I'm wrong!
...
Hi all
I'm creating a 2d tile based sim game.
I have a 2d array of gridSquares, which are accessed and changed from many different classes and methods.
Should I pass the 2d array of gridSquares each time, or make it a global? Which is best practice?
I was thinking, would it be an option to create a class which just contains a set of va...
Has anyone had any personal experience on why XmlBeans might be preferred over Axis for invoking Web Services?
...
High I am new to java NIO. I have to write a simple server client communication program using java NIO. So is there any sample programs or any link where can I go for this.
Thanks
Bapi
...
Disclaimer: I realize I can generate this at runtime in Java, this was needed for a very special case while performance testing some code. I've found a different approach, so now this is just more of a curiosity than anything practical.
I've tried the following as a static field, as an instance field, and initialized directly within the...
I am looking to load a JAR at runtime but want loading to fail if the JARs aren't either signed nor sealed. I know that Java JCE has this capability when loading new crypto algorithms. Do any of the plugin frameworks already support this functionality? Otherwise, what is the best approach?
...
What would be the most elegant way to implement a Win32 equivalent of WaitForMultipleObjects in Java (v6). A thread is sleeping until one of several events occur. When that happens, I want to process it and get back to sleep. No data is required, just an event.
...
I recently ran across the notion of Identity Based Encryption (IBE) which seems like a novel idea. However, I haven't noticed many in the cryptography community attempting to find ways to break it. Am I wrong?
Likewise, I am of the belief that unless you can actually distribute open source implementations where the blackhat crowd can at...
Nowadays, it seems like conferences for software developers are disappearing. The last one I attended was the Tulsa TechFest and OWASP Hartford. I am curious if there are events that are not on my radar that should be? The criteria I seek:
Multiple day format
Speakers are practitioners, not vendors and industry analysts
Under $400
In a...
I want to create edit , delete link in display tag with struts2. How can i do so ?
If anybody knows please help me ....
i am doing this.
<display:column property="id" title="ID" href="details.jsp" paramId="id" />
but the link is not going to details.jsp .It doesn't go anywhere . what can be the possible reason
...
<display:column property="id" sortable="true"
paramId="id" paramProperty="id" titleKey="adminList.id"/>
<display:column property="username" sortable="true" titleKey="adminList.username"/>
<display:column property="password" sortable="true" titleKey="adminList.password"/>
<display:column>
<s:url id="removeUrl" action="remove">
<...
This question was originary in my head as "Can I use AWT controls in a Servlet?", which will show all my ignorance on the subject.
I am new to JAVA technologies but after a bit of reading, I seem to understand AWT controls directly hook up the OS GUI elements so there is no way to use or extend JPanels, JButtons and so forth in a Servl...
I want to achieve the effect of a 2D image I have but a little inclined, for example a plane, I want the image can be rotated about its axis Y. .. anyone can help me with some idea of how to do ..**
...
How do you optimize the heap size usage of an application that has a lot (millions) of long-lived objects? (big cache, loading lots of records from a db)
Use the right data type
Avoid java.lang.String to represent other data types
Avoid duplicated objects
Use enums if the values are known in advance
Use object pools
String.intern() ...
I am just learning how to use Terracotta after discovering it about a month ago. It is a very cool technology.
Basically what I am trying to do:
My root (System of Record) is a ConcurrentHashMap.
The main Instrumented Class is a "JavaBean" with 30 or so fields that I want to exist in the HashMap.
There will be about 20000 of these J...
With the upcoming end of life (EOL) of Java 5.0. We need to upgrade our enterprise application to work with Java 6.
The application can be deployed on both WebLogic, WebSphere & JBoss. (It's up to the customer's choice)
Does anyone have an experience with such an upgrade? What issues should we encounter?
What pitfalls we should avoid?
...
Do you know a good implementation of a (binary) segment tree in Java?
...