呵呵,没有必须,凡是可以用jsp的时候,都可以用servlet代替,
凡是可以用servlet的时候,都可以用jsp代替,它俩本身就是同一个东西。