Hi all,
I created the the file index.jsp as below
<form action="" method="POST"><br>
First Name: <input type="text" name="firstName" size="20"><br>
Surname: <input type="text" name="surname" size="20"><br>
<input type="submit" value="Submit"><br>
</form>
I export it to .war and everything works fine. Then later I modified...
Hey everybody I'm working with java,
So I am writing a class called ordered set. It is a class that is cross between a set and a queue. In other words, it is a queue without any duplicates. So I know I have to implement the Iterable interface, and write an iterator method. To write the method I have to then implement the iterator interfa...
How do I make a Hyperlink for the current page fire the history change event?
For example, on http://localhost:8080/index.html#foo there is a Hyperlink with a historyToken of foo. How do I get the app to process/fire that click/change event?
Am I at the mercy of the nature of browser behavior?
...
Hi,
I am using a text file to store the serial port output. And now I want to put the contents of the file to an textArea in java. I have created a dedicated thread for file read operation. I need the thread to sleep when there is no data to read and thread should wake up automatically once data available for read in the file. In the th...
I'm having some problems with a Wicket 1.3 -> Wicket 1.4 migration, but this question could be applied to Java generics overall, too. The migration has caused hundreds of warnings to spring up out of nowhere -- for those unfamiliar with Wicket, many Wicket classes are derived from a common ancestor, which became generified in v1.4 -- an...
Can impact analysis be done in Eclipse? If there are a few classes and methods that need to be changed, finding the impact of that change on rest of the application code (other classes and methods)
The core issue is when there is code apart from core java that is XML, JSP, framework code etc
...
<root>
<elm id="1"/>
<elm id="2"/>
<elm id="3"/>
<elm id="4"/>
</root>
I want to leave id="2" in the dom,
how can domj4 to remove the other three ?
result:
<root>
<elm id="2"/>
</root>
...
i tried setlevel(0) and setmute(true) in volumecontrol of a video player;
the sound is small,but not mute yet? any body can tell me why?
thx
...
How to convert a numeric cell type into a text cell type in ms excel document without changing contents of the cell using open office. This cell value is then accessed using java (POI JAR getRichStringCellValue() method of HSSFCELL Object).
...
When compiling my Java Servlet code, I get the following error...
in javax.servlet.http.HttpServlet; overridden method does not throw org.xml.sax.SAXException
In my overridden doGet() function, I'm using JAXP to process XML which apparently requires me to handle SAXExceptions. But when I tac "SAXExeption" onto the list of exception t...
I am having a runtime error ONLY when I test my Java program on a mac computer. It tests perfectly fine on various Windows operating systems. This is the error message I get on a Mac computer...
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at project.MainPanel.calculateButton...
I'm not sure how useful this would be, but I thought it might be neat to visualize the objects being used in my program and which objects are being referenced from where. I'm guessing it would generate some data that would be used by a program like graphviz. Are there any tools that do this, otherwise how hard would it be to do this myse...
Can i connect multiple users from any application at same time using same time for chat? Is there any api available for c or java
...
Hi I have an application running in tomcat,as well as Weblogic and Websphere
I need to determine which port the application is running and display on the UI
Is there any JAVA api to find that
...
I have 2 windows PC's connected over an ad-hoc wlan network.
Using this existing connection can I communicate between these pc's via sockets?
Can I open a server socket on one pc and make the other pc a client and connect to the other pc and then send and receive data over this connection?
Do I need a specific api for this or can I just ...
<ehcache>
<cache name="query.ContactInfoList"
maxElementsInMemory="200"
eternal="true"
overflowToDisk="false"
timeToIdleSeconds="300"
timeToLiveSeconds="600"
/>
</ehcache>
public List getContactInfoList(){
hibernateTemplate.setCacheQueries(true);
hibernateTemplate.setQueryCacheRegi...
For a java/scala project I have some dependencies that are not in a remote repository, but somewhere else in my filesystem. I have then two options, which lead to questions:
I can add a lib/ directory in my project folder. How can I tell buildr to add the content to the class path ?
I can use the builtin dependencies management system....
Hi,
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at java.io.StringWriter.write(Unknown Source)
at com.ctc.wstx.sw.BufferingXmlWriter.flushBuffer(Buffe...
This is a Java and C# question.
We all know that, Object Identity(==) tests whether two objects refer to the same location and Obejct Equality(Equals method) tests whether two different (non identical)objects have the same value .But In case of string object Object Identity and Object Equality are same.
For e.g Below two boolean expres...
Firstly I know coordinates is probably the wrong terminology? I'd assume i'd simply be passing the x and y variables, but coordinates describe it better I feel.
Now I need to have a Server which can be accessed by 2 clients, it is a racing game and it requires each client to be able to maneuver a racecar simultaniously, each using a dif...