Thread: jsp with ajax
View Single Post
Join Date: Jul 2007
Posts: 1,176
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: jsp with ajax

 
0
  #2
Dec 2nd, 2008
First thing you could do to help us is get rid of that SMS or Instant Messaging language to let us understand your problem better and get rid of the ".."s we are not playing fill in the blanks here, and finally use a spell check.

Next do not do database connectivity directly inside a JSP. And also paste the code of the JSP you are talking about, cause honestly what you are saying defies logic to me.

Also note when JSP is converted to a servlet, it is not executed. So no data will be fetched at the this time, Its just like when you write a normal Java application, during compile time the code is converted into a class file (it is not executed) and only when you specify "java <main-class-name>" it is executed and thats when the data fetching happens.

Please a sincere suggestion to you is first concentrate on the basics of the language before jumping in to advanced topics. What I have mentioned here would have been covered in any book on JSPs in the first or second chapter itself. The greatest towers in the world stand because they have a strong foundation underneath. Similarly you should never leave out the basics and just jump to advanced topics just to save time, in fact you will end up spending more coming back to the basics each and every time you run into any sort of trouble.
Last edited by stephen84s; Dec 2nd, 2008 at 2:53 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote