Hi,
do you know any good reverse engineering tool that creates UML diagrams from Java code and Hibernate mappings across multiple projects, in Eclipse or Maven (not in the Javadoc)?
Thanks
Dear all,
I making a web application,i want to store images in cache ,next time i dont want to get images from network.how can i implement using java,using weakhaspmap or hashmap.
Hello ,
I have a search form.When user post the search form i take the user to the result page which has search form and results of the search.Now if the user click on the back button of the browser ,i want that he should be the search page form filled with his values.I am using java
I am developing a Java Desktop Application and want a light database that can be used with Hibernate and that can be packed with an application.
I was going to use Derby database. It's size is near 2 MB. But before that I wanted to have views of experts on SO.
Will it work with Hibernate?
Actually, I am new to Hibernate and was studying that it requires a Dialect for a database so Is Hibernate has dialect for Derby?
I develop Java EEapplication and I have to create some files in the src folder in the my application. But I dont where or how to specify the path. I want my application to be portable. It means just to say TestProject/src/.... and not C:/bla/bla/TestProject/src/...
do we specify this in some app file like web.inf, meta-inf or its just some trick.
Thanks!
Hi there,
I'm loosing my hair trying to figure out why net.sf.json.JSONObject add extra backslash where it shouldn't on my java code :
JSONObject obj = new JSONObject ();
obj.element ("column_name", "<a href=\"#\" title=\"test\">Test !</a>");
will output :
<a href=\"#\" title=\"test\">Test !<\/a>
with an extra "\" near <\/a.
How can I avoid this behavior ?
Thanks for your help !
Can someone please explain the following
How was the first JDK release unit Tested? Since Junit came after Java how did they do it?
Are the current releases using Junit to test the JDK API?
Regards
I need to prevent Session Fixation, a particular type of session hijacking, in a Java web application running in JBoss. However, it appears that the standard idiom doesn't work in JBoss. Can this be worked around?
I was hoping to do this from a flash plugin, kind of how flash accesses the microphone or webcam but it doesn't seem possible.
Is this going to be possible using Java, or ActiveX, or some other strategy that I haven't looked at yet?
The idea is to do it without a client install, or at least something lightweight and browser and platform independent, (and possibly the moon on a stick as welll ;-))
Specifically some that may cater to an experienced developer (C#) but not necessarily familiar with Java/Eclipse?
I have seen a couple vids on YouTube but they are either short (not much you can learn in 3mins or patronizing)
One of the drop down lists in my Java SWT application has 8 fixed options. When I click on it only 5 first options are visible and I have to scroll the list down to view the rest.
Is there any way to force it to make all options visible without having to scroll down?
There is another similar .NET application that has same drop down list with the same options and they all are visible without having to scroll down!
I am running my java application. It shows up in the process tab of the task manager. I dont want users to kill that process?
And if possible i dont want my process to be in the process list also.
I'm running eclipse with the Blackberry Java Plug-in, working on a 1.4.5 Blackberry project.
The project has been building and debugging in the emulator normally until I started getting:
A prompt saying "[projectname].debug file is missing".
A message in the Blackberry Packaging Console saying "I/O Error: Cannot find program "jar": CreateProcess error=2."
Anyone have any ideas what could be causing this?
Is there any tag in the Struts 1 tag library which can format a java.util.Date object?
In Struts 2, I can use the s:date tag, but I can't find the Struts 1 equivalent.
Hi, I need some advice on creating a syntax highligher for java application using swing. The application should allow to edit a file and highlight syntax.
I don't know the swing library, what should I look for?
Is it possible to implement the Model-View-Controller pattern in Java for Android? Or is it already implemented through Activities? Or is there a better way to implement the MVC pattern for Android?
Could any one please tell me the meaning of "++" with array in the following code in Java:
int [ ] arr = new int[ 4 ];
for(int i = 0; i < arr.length; i++){
arr[ i ] = i + 1;
System.out.println(arr[ i ]++);
}
what is arr[ i ]++ meaning in above code, and why we can't do like:
arr[ i ]++ = i + 1;
I'm trying to convert an ArrayList containing Integer objects to primitive int[] with the following piece of code, but it is throwing compile time error. Is it possible to convert in Java?
List<Integer> x = new ArrayList<Integer>();
int[] n = (int[])x.toArray(int[x.size()]);
I'm looking for a good way to disable a JPanel. I'm using a MVC design for a Java Swing GUI. I want the JPanel to be disabled while the model is processing stuff. I've tried setEnabled(false). That disables user input on the JPanel, but I'd like it to be grayed out to add a more visual effect.
Thanks in advance!
If LinkedHashMap's time complexity is same as HashMap's complexity why do we need HashMap? What are all the extra overhead LinkedHashMap has when compared to HashMap in Java?
Hi!
When I'm running my program, I get the following error:
... nested exception is
javax.naming.NameNotFoundException:
ejb not bound
The error occurs at the start up when Java wants to create a certain bean.
The Bean is a SimpleRemoteStatelessSessionProxyFactoryBean. Could it be that I ain't got the rights to access the naming provider URL although I can ping it?
When accessing the bean on my local JBoss there are no problems.
Some Java APIs provide a large number of interfaces and few classes. For example, the Stellent/Oracle UCM API is composed of roughly 80% interfaces/20% classes, and many of the classes are just exceptions.
What is the technical reason for preferring interfaces to classes? Is it just an effort to minimize coupling? To improve encapsulation/information hiding? Something else?
Hi,
when i try to debug the java programe , it says "Cannot find a free socket for the debugger in eclipse".Could you explain how to resolve the error ?