• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jsp as a controller ?

 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I am a newbie in J2EE technology,

1.)Can anybody explain me why JSP are not considered as good controllers than servlets.


2.)How to debug an error in a JSP code.



Thanx in advance
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Because JSP have built in assumptions that they will be writing HTML text and open the response stream for text output. Avoiding this is reallllllly cumbersome so dont try.
2. Naturally this depends on the kind of error - there are so many ways to go wrong with JSP.
a. make your error page informative
b. check variables for null before trying to use them
c. examine the Java code that the JSP compiler creates to see what is really trying to execute - you may be surprised.
Bill
 
faisal usmani
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx William, really appreciate your prompt respone .
reply
    Bookmark Topic Watch Topic
  • New Topic