have someone used quercus to translate php into bytecode? if you got a big php application, will the translation be flawless? it sounds to me very impossible to just translate everything without error in code like that.
but they claim on their web page that mediawiki and other popular websites (joomla to i think) use it.
and my php cod...
as i change string but it remain as it is in jlable.
i want to update that string from particular timeperiod
...
Hi,
Whenever I try to add the numbers in string like:
String s=new String();
for(int j=0;j<=1000000;j++)
s+=String.valueOf(j);
My program is adding the numbers, but very slowly. But When I altered my program and made it like:
StringBuffer sb=new StringBuffer();
for(int j=0;j<=1000000;j++)
sb.append(String.valueOf(j));
I ...
I'm about to start development of fairly large java based desktop application. After looking at JIDE components and frameworks, it seems to be a good solution at a glance. I'd like to hear from those who used those products. How reliable are they? What's the learning curve? Pros and cons?
...
I use a Java Socket object in my client application. I need to know when the line to the server is broken, or if any event caused the socket to be dead.
I see two methods:
catching SocketException when writing in or reading from the socket, considering these exceptions kill the socket
when catching these exceptions, checking the Socke...
Hi
First: I'm using Spring 3.0
I have a problem when configuring my controller class. The controller uses a web service which I want to define the endpoint address using a .properties file.
@Controller
public class SupportController {
@Value("#{url.webservice}")
private String wsEndpoint;
...
In my application context...
Hi,
I am upgrading from Google Collections 0.9 to 1.0. It seems Sets.newConcurrentHashSet() is no longer available. I was using it in the following construct:
public static <K, V> Multimap<K, V> newConcurrentMultimap()
{
return Multimaps.newMultimap( new ConcurrentHashMap<K, Collection<V>>(), new Supplier>()
{
@Overrid...
Hi,
I am using SAX Parser to parser XML file on Blackberry platform.
Some XML tags contains exrta spaces and newline characters. How to remove this unnecessary whitespace characters while parsing XML file.
Any help would be appreciated.(I tried to use Trim() function but still it doesn't remove extra whitespaces.)
Thanks,
Jim.
...
this is example of how sql is showed when using show_sql=true
Hibernate:
select
propertyse0_.entity_name as entity1_3_0_,
propertyse0_.entity_id as entity2_3_0_,
propertyse0_.entity_key as entity3_3_0_,
propertyse0_.key_type as key4_3_0_,
propertyse0_.boolean_val as boolean5_3_0_,
prop...
Hi,
After clicking on an image, the user is redirected to a new page like:
/viewPalermoUser.seam?accountId=100245
with the code:
<s:link title="#{messages['palermo.userlist.view']}" view="/portal/custom/palermo/administration/viewPalermoUser.xhtml"
propagation="none">
<f:param name=...
I would like to check the existence of a ResourceBundle without actually loading it.
Typically, I'm using Guice, and at initialization time, I want to check the existence, while at execution time, I want to load it. If the bundle doesn't exist, I want an early report of the inexistence of the RB.
If it was possible to get the ResourceB...
Hi,
Has anyone used the grails timeZoneSelect tag on GAE/J ? I've come across the error below on app engine. I know reflection is not allowed, but the line in error seems to be calling a straightforward public function (inDaylightTime)? Does anyone know how to workaround this (short of a hardcoded list of time zones)?
thanks
Uncaugh...
This is regarding use of annotations in Java. I associated an annotation with a method while declaring it in the interface. While implementing, how can I ensure that the annotation is carried along with @Override annotation and if not, it should throw a compilation error?
Thanks.
...
I'd like to know how to programatically turn off java logging - no property files, no command line arguments etc.
I've tried:
final Properties logProperties = new Properties();
logProperties.put("handlers", "java.util.logging.MemoryHandler");
logProperties.put(".level", "SEVERE");
logProperties.put("java.util.logging.ConsoleHandler.lev...
Hi there,
at the moment I've got a construct like this:
<div class="line">
<label>Label</label>
<h:inputText id="text-id1" required="true" ... />
</div>
Now when a validation exception is thrown I show them in a
<h:messages ... />
Is it possible to set the error class to my wrapping div?
...
I want to load the property file when tomcat is starting.so I'm using servletContextListener to do that and i can get values of property file to my web application.
But i want to keep the same value after changing the property file once log into web application.But when i change the value of property file and log into system again it cha...
I'm currently refactoring a class which currently looks something like this:
class SomeModel {
private String displayName;
private int id;
private boolean editable;
private int minimumAllowedValue;
private int maximumAllowedValue;
private int value;
// etc. etc.... a bunch (10+) of other fields...
// an...
It seems like the WebService(SOAP) Request of JMeter does not include headers in the request defined in a HTTP Header Manager.
I want to send Accept-Encoding: gzip, deflate with every SOAP request of my JMeter test - is there a way to achieve that?
...
hei. the language is java.
i want to extend this class which the constructor has parameters.
this is the main class
public class CAnimatedSprite {
public CAnimatedSprite(String pFn, int pWidth, int pHeight) {
}
}
this is the child class
public class CMainCharacter extends CAnimatedSprite {
//public void CMainCharacter...
I'm having a design problem which I don't know how to overcome in java. I want to override a method that is called from the parent constructor. Here is a very simple example of the problem:
public class Parent {
public Parent(){
a();
}
public void a() {
// CODE
return;
}
}
public class Child ex...