prerit datta wrote:Seriously?? They dont use Bean classes anymore???
Please show me where I said beans were not used.
I need to have a talk with my teacher now!!! :censored: You see I'm from India and they don't have many institutes where they teach you Java concepts clearly. I kinda learned basic java on my own. Using Head first java and complete Reference.
Head First is a good book that will also cover modern techniques. You'll probably eventually need to learn about old-fashioned scriptlets in order to deal with legacy code, but
you should not be writing new code that uses Java code in a JSP.
I suppose with the problems such as these they sure had a very good reason to do away with it!!
Ding! Ding! We have a winner. There are myriad problems that are solved by not putting Java in a JSP.
P.S: Maybe my teacher was teaching my old things and so as to learn what prob. occurred with them. Just like you learn C, C++ then java and so on. And yeah I'll be learning JSTL soon in my next class.
That's good. Personally I would teach the correct way first -- then teach the antiquated stuff as a "you may come across a TV set that uses vacuum tubes" kinda way.
If you
have to use scriptlets because of academic restrictions, that's one thing. Using them in real code is another.