Jeanne Boyarsky wrote:Is there any reason you can't refactor your code to NOT have customer specific information in the web.xml? You could put it in a property file or an app server variable or an operating system variable.
If it absolutely must be in the web.xml, you could write a script to unjar the war file, update the web.xml and jar it back up. But this is awkward. And it would be easier to update the app to not have a web.xml dependency that is user dependent.
William Brogden wrote:Compiled classes get labeled with the Java version they are compiled for. Java 6 won't run a class compiled for 7 due to this label, not the features.
Bill
William Brogden wrote:I would certainly try recompiling with the command line option -target 6
See the javac options.
Bill
a and b are primitive variables, not reference variables. They directly hold the numerical values we give them.
Hare Shiva wrote:I have created an applet and it doesnot access any client files or resources.So in my understanding i donot need to sign it.I am going to host that applet along with my website.My problem is that whenever browser runs that applet at start up it ask for permission.I want the applet to run without such permission.Its a simple applet.How can i achieve it.I have seen other applets that runs automatically in my browser.I want to achieve same like that.Please any suggestion.
Not sure what you're trying to say here, but technically, "same location in memory" has nothing to do with it (although in any normal implementation that's probably exactly what it does). It doesn't check for two objects being equal, and I certainly didn't say that it does. It simply tests whether two refrences point to the same object, or are both null.
http://docs.oracle.com/javase/specs/jls/se5.0/html/expressions.html#15.21.3
Mike Simmons wrote:Well, do you declare all your local variables at the beginning of the method, as was traditional for years in many older programming languages? Or do you wait to declare them when they're actually used? I prefer the latter. I'm sure that if I were using a language that made it a pain in the @$$ to declare them later, I could declare them up front like people did for years. But since I use languages where it's trivially easy to put the declaration where it makes the most sense to me, I do so. I see local functions in Scala the same way.
WeiJie Lim wrote:
I am trying to print out the range of odd numbers between the 2 integers entered using the JOptionPane dialog. I have narrowed down the issue to the for loop, but I can't spot the error. It is able to compile, but no result occurs.
Rajiv Rai wrote:
The output for the above code is as follows
15
0
-41
How does -41 come out as result of third print statement?