A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Originally posted by Bear Bibeault:
Personally, I always structure my applications properly regardless of their size. All too often what starts as a "small project" snowballs into something bigger, and if you've started off with a poor structure it's unlikely to scale well. It's also just good discipline and practice, and a good habit to get into.
Performance is not a factor. It will have no discerable performance impact to factor processing code into a servlet which dispatches to a JSP over just plunking the code down into the page.
It is also incorrect to think that in order to write scriptless JSP pages that you have to use "any latest framework". You don't. I don't.
And finally, the advice of anyone who says "dont listen to other people's advice" is the first that I would regard with caution.
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
the only way is i have to follow MVC2 architecture that is jsp,servlet ,bean.. so for this ishoudl definitely use... java code in my jsp files.....
Originally posted by saikrishna cinux:
hey everybody suggested me to not to write java code in jsp using scriptlets
but here i am doing one simple webapplication which displays 5 records out of 100 records when ever user press on next button.
so fo this i am writing the java code in jsp.for better performance..
if i use this java code in servlet i can eliminate java code inside jsp file.but accoring to performance i think it is not so good because if the use clicks on next button the control goes to servlets and gets the first 5 records and so on...
which is the better way ??
any experienced developer can give be the best suggestion..
thanks in advance
cinux
SCJP, SCWCD
Originally posted by saikrishna cinux:
hey everybody suggested me to not to write java code in jsp using scriptlets
but here i am doing one simple webapplication which displays 5 records out of 100 records when ever user press on next button.
so fo this i am writing the java code in jsp.for better performance..
if i use this java code in servlet i can eliminate java code inside jsp file.but accoring to performance i think it is not so good because if the use clicks on next button the control goes to servlets and gets the first 5 records and so on...
which is the better way ??
any experienced developer can give be the best suggestion..
Don't get me started about those stupid light bulbs. |