Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
0answers
4 views
How to assign a service to message-driven-adapter in Spring Integration?
Upon received message in receiveChannel I would like to invoke a service to do some extra work.
The flow of messages would be:
JMS Message -> receiveChannel -- message-driven-adapter --> ...
0
votes
0answers
5 views
Accessing gmail inbox in GAE with java
I'm trying to access my Gmail inbox in GAE with Java. I've tried it via IMAP and via POP3. The code for IMAP is the next one:
public class InboxServlet extends HttpServlet {
private static final ...
0
votes
1answer
26 views
Can i change\access the Outer class level variable from static inner class
I have a class which has another static inner class
class A {
private List<String> list;
public static class B {
// i want to update list here without making list as static
}
}
...
0
votes
0answers
5 views
Use a superclass as ModelAttribute in Spring MVC controller
I have a form with some hidden sections. These sections contains some extra information (not mandatory fields). What I'd like to do is to design my model as a BasicInfo class and extend that by ...
0
votes
0answers
10 views
Editing the table using ajax
How can i edit my table in database using Ajax? I have already stored some data in Data Base.Actually i kept Roll no as a search option, I have Entered some concern person roll number and now I am ...
0
votes
0answers
29 views
Algorithm to calculate two values based on width and height
I have two values, width and height.
What I want is might be separated into several or one, whatever is best.
But I want to be able to have four values that are set (as fields):
Width of image the ...
0
votes
0answers
11 views
Spring MVC | IBM Websphere Application Server | Server Startup Error
I am getting the following error while deploying a Spring MVC app on IBM WAS 6.1.
[17/07/13 12:31:55:466 BST] 0000001a WebApp E Exception caught while initializing context
...
1
vote
0answers
5 views
Use snmp4j to get APs' SSID
I am writing a program to get SSIDs of all the APs in our environment.
The problem is, I can send a request to the controller and get all the responses like is:
...
0
votes
0answers
4 views
Android ViewAnimator height changing base on child
By default, the max size of all children is used as the VeiwAnimator's layout size.
How to create ViewAnimator, which height changes depending on the size of displaying child?
1
vote
0answers
17 views
Java method does not override
I am trying to display image fetch from database in a table view. Here is how I set up my table view with image column:
TableColumn prodImageCol = new TableColumn("IMAGES");
...
0
votes
1answer
17 views
Reading multiple XML files from an input stream Java
How would I read multiple XML files from an input stream in Java and write them as XML files?
I have this:
InputStream is = new GZIPInputStream(new FileInputStream(file));
Edit: I have a tar.gz ...
0
votes
1answer
9 views
How do I provoke a SQLExcetpion in DAO-Layer with JUnit
I have a DAO-Layer which I want to test with JUnit. The test coverage is about 85%, so nearly every line of code is covered except the catch clauses for SQLException. I have no idea how I can provoke ...
0
votes
0answers
23 views
how can I return image after employed application
I have a problem I'm developping in java using eclipse include WindowBuilder before making setup my application is running as well I can browse the image, storing in my database(Mysql)after I can ...
0
votes
3answers
42 views
Back button -> emulate home button
I want hide my app, if press BACK button.
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0)
{
...
0
votes
0answers
26 views
.net encode and java decode
I have a string in c#. I want to send that string from .net web service to java after encoding.can any one suggest the procedure to encode a string in c# and decode the same in java?
Thanks in ...