Following the instructions in the documentation here I set the run-jrebel.cmd as follows:
@echo off
set JAVA_OPTS=-javaagent: c:/jrebel/jrebel.jar -Xms256m -Xmx512m -XX:MaxPermSize=256m %JAVA_OPTS%
call "%~dp0\run.bat" %*
Winston Gutkowski wrote:
Nick Widelec wrote:So JavaScript is run server-side or client-side? You say no client-side activity. But the above Jeanne's response seems to say the other way around.
I think you misinterpreted what Bear said (it actually took me a couple of scans too ).
What he said was that "no JavaScript means no client-side activity" - ie, without JavaScript, there won't be any client-siide activity.
And what Jeanne was saying was that you want straightforward stuff like field validation to be done on the client side. So, putting those two things together, it makes sense for a page that DOES want client-side activity (eg, for validation) to include JavaScript.
Does that make more sense?
Winston
Bear Bibeault wrote:No JavaScript means no client-side activity, regardless of how the HTML page was generated.
Jeanne Boyarsky wrote:Suppose you want to validate the user entered valid characters in a date, name, phone #, etc and the format is valid. To do this with just JSP, you'd have to go to the server to do all this validation and make the user wait. Which is poor usability.
Similarly, many dynamic elements of a page require JavaScript. So yes, you COULD develop a page without JavaScript. But it would be like the pages circa 1995; not what users have come to expect.
Jeanne Boyarsky wrote:Nick.
JavaScript is used in the browser regardless of what back end is used. So JavaScript should be required for both JEE and CGI (and .NET and ...) back ends.
You might be interested in reading about the polyglot programmer. It's a good way to describe that there is no such thing as a "Java" programmer. You must know SQL, HTML and JavaScript at a minimum. And often other languages as well.
Alam Ameghino wrote:I think that my poor ingles is a problem in this case. Sorry.
See friend,
From Kathy and Bert's book
Page 392. Title: Don't use assertions to validate arguments to a public method.
So, it is not correct:
Page 393. Title: Do use assertions to validate argument to a private method
So, it is correct.
But, What happen when in a private method we are validating an argument that belong to the previous public method? The argument is the same, the same object in both.
Thanks Nick.
Sorry if I am not being clear.
Alam Ameghino wrote:I know thtat assertions work only in runtime, but you must say if they are appropiate or not in compile-time.
You don't need run a program for know if assertions are appropiate or nor!
As a rule, the expressions contained in assertions should be free of side effects: evaluating the expression should not affect any state that is visible after the evaluation is complete. One exception to this rule is that assertions can modify state that is used only from within other assertions. An idiom that makes use of this exception is presented later in this document.
Alam Ameghino wrote:
Hi Nick, and again thanks!
Mmmmm, I am not agree..
You must say if assertions are appropriate or not in COMPILE-TIME, no in RUNTIME-TIME.
Alam Ameghino wrote:Nick, thanks for the link and your answer.
But, I can not see the answer to me question in this link!
Where do you see the answer in the link?
Alam Ameghino wrote:Thanks for response Souvik!
I believe the same, but I am not sure.
Someone knows exactly what is the answer?