Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

the returning message of Bean not work with JS?  RSS feed

 
Lek Kin Wong
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, im using jsp:usebean to get the file list on the server side,
however the returning message cannot work with the Javascript?


Solved!
i miss the ' .... :
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your usage of Hungarian notation makes me insane.

Isn't its functioness implied by calling it as a function?!
 
Lek Kin Wong
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Your usage of Hungarian notation makes me insane.

Isn't its functioness implied by calling it as a function?!

Sorry for my poor English.
 
Pat Farrell
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your English skills are not what he is referring to with "Hungarian notation". Rather that is a specific style of naming variables and functions that dates from very early Microsoft C days, where because C had such poor type checking the programmer used prefixes to indicate what a variable was. Rather than calling a Pointer variable Foo, you would call it pFoo.

Your code sample uses Hungarian notation, id$Bean1. The "id$" is unnecessary. Same with your function$

Hungarian notation is considered poor form by Java programmers. (and Python and most other modern languages).
We let the compiler detect type mismatches, rather than expecting the programmer's eyeballs to do it.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!