If I look at the java code generated for JSP's within JSWDK, it looks quite different from other sample servlets. Why? Can I obtain "typical" doGet-style servlets from JSP's?

Serge Knystautas

Servlets generated from JSPs can have a wide range of possible uses, so they cannot make assumptions you can make while writing a servlet. For instance, the servlet you refer to is assuming that it will only process GET requests. JSPs can be the target of any form of HTTP request including GET, POST, PUT, or others. For the moment, there is no way to specify what HTTP methods a JSP supports, so they always implement the service method.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact