Does the server know the page URL of the applet without asking the applet?
There's Applet.getDocumentBase() to handle that from the applet itself but I was wondering if there was a way on the server without referring to the applet.
...
Hi
If we have a person-directory application,
where we can check the details of a specific person (for example, person with id 239) at
http://person-directory.com/detail.jsp?id=239
how can we create vanity urls in it?
i.e. instead of typing the above url, we use
http://person-directory.com/julius
to open the detail page of person...
I want to get rid of this lot...
public void info(String msg);
public void info(String format, Object arg);
public void info(String format, Object arg1, Object arg2);
public void info(String format, Object[] argArray);
...and replace it with this one...
public void info(String format, Object ... args);
...so that my logging syntax ...
Hi,
I have my code as follows (Modified). Created action myCutAction1 similar to myCutAction and passed it to createAction() method.This method setting the accelator to keystrokes as shortcuts using item.setAccelerator(aShortCut);
The problem is.. i dnt want to show Cut1(Shift+Delete) menu item in myEditMenu JMenu in my GUI.
Whenever ...
I come from a .NET background and am completely new to Java and am trying to get my head around the Java project structure.
My typical .NET solution structure contains projects that denote logically distinct components, usually named using the format:
MyCompany.SomeApplication.ProjectName
The project name usually equals the root nam...
Based on the help availed from stackoverflow I created the table with hiddenfields to pass the value to servlet, but in servlet I am unable to get the values of the input fields.
Here is my jQuery code to create table:
$("#linkInstr").click(function() {
var arr = new Array();
var cdid = $("#cboinstr option:selected");
var c...
Hello all,
Im facing a scenario where in ill have to compute some huge math expressions. The expressions in themselves are simple, ie have just the conventional BODMAS fundamental but the numbers that occur as operands are very large, to the tune of 1000 digit numbers. I do know of the BigInteger class of the java.math module but am loo...
Hi,
when I have html:
<html>
<head>
</head>
<body>
text
<div>
text2
<div>
text3
</div>
</div>
</body>
</html>
how can I get with DOM parser in JAVA content of body:
text
<div>
text2
<div>
text3
</div>
</div>
becasuse method getTextContent return:text text2 text3. - so without tags.
It is possible ...
I've been racking my head with this...
I've got a localized strings.xml file in a values-en folder with this example string:
@string/my_string
The string has the following text stored in English: "My String"
When accessing the localized string via a layout, it works fine.
When I try to change it in code, that's where I get problems.
...
Where to find the full list of all tags that are introduced in JSF 2.0? Yes, I could open the 1.2 and 2.0 references and compare the tags one by one, but maybe somebody did it before?
I know that the list includes:
h:body
h:button
h:head
h:link
h:outputScript
h:outputStylesheet
Something else?
Update: In addition to the JSF HTML tag...
I will be starting a small Java (GWT really) project in the near future and I am at "information gathering" phase.
Q: Is there a lightweight Message Bus library written in Java?
My requirements are lightweight too :-)
async (no need for sync)
multicast and point-to-point
no strict message ordering
message "envelope" ideally "owned" ...
We have a low latency trading system (feed handlers, analytics, order entry) written in Java. It uses TCP and UDP extensively, it does not use Infiniband or other non-standard networking.
Can anyone comment on the tradeoffs of various OSes or OS configurations to deploy this system? While throughput is obviously important to keep up wi...
An application I'm working on does all its queries by identifier using session.load(). Given the chaos it causes when it can't find the identifier and throws an exception, I'm thinking of swapping it over to session.get(). But before I do that, it's such a fundamental part of the system that I want to make sure there's absolutely no othe...
I am using openjpa runtime of JPA specification.
At development time I am using annotations to configure jpa entities.
At Integration, Pre-Production and and Production environment, I am using orm mapping files to configure entities. Please suggest a tool which can generate mapping files from jpa annotations, so that these mapping files ...
Hi all,
I need to attach a debugger to a remote instance of WAS and know that debugging is enabled. The problem is getting WID or whatever IDE I wanted connected to the server so I can step through the code.
I tried using Netbeans to connect and I get handshake failed, connection interrupted. The debugger is listening on port 7777. ...
class OuterClass {
class InnerClass {
static int i = 100; // compile error
static void f() { } // compile error
}
}
Although it's not possible to access the static field with OuterClass.InnerClass.i, if I want to record something that should be static, e.g. the number of InnerClass objects created, it would be helpful to make th...
in a simplified version, what i have is this:
public class MyLabel extends JLabel implements MouseListener{
private SomeControl control;
public MyLabel(SomeControl control){
this.addMouseListener(this);
this.control = control;
}
@Override
public void mouseClicked(MouseEvent arg0) {
Object x = this.control.getSomeProperty();
}
Eve...
How do I have a new file type launch my app?
For example if I have a new file type 'file.mjl' and I receive this file as an email, I want Android to associate this file type with my app and allow me to open / save it.
...
Hi, all.
I am a beginner on developing Android's application. I have some problems about using regular expressions in Android.
In my application, I had write some code for get back the source code of a html page which I had turn it in String datatype.
And now I want to use regular expressions to retrieve some details in the html tags ...
I'd like to learn how to create a java web service that can be consumed by a web tier, which is constituted of java and flex.
What books can help me learn how to create a java web service and consume it via java & flex?
Should I look to build a web service from scratch or from frameworks like: XFire, Axis, CXF, Spring Web Services, et...