reset password
Author Message
krana99
Posts: 2
Posted 18:18 Oct 06, 2009 |

Professor, you have mention in HW2 that "our application must use the MVC architecture. In particular, servlets cannot be used to generate HTML content, and no scripting elements are allowed in JSP pages.

 

Question is : is it ok to use jstl ?

 

Thanks

jadiagaurang
Posts: 53
Posted 19:08 Oct 06, 2009 |

If I am not wrong, In MVC you can use JSTL in JSP files only. Basically, Servlets should work as controller, which determine view upon certain requests. You can have JSPs as your views and you need to use JSTL to generate HTML response like <c:forEach> for loop or <c:choose> for If conditions. If I am wrong then let me know! Innocent

cysun
Posts: 2935
Posted 21:43 Oct 06, 2009 |
krana99 wrote:

...

Question is : is it ok to use jstl ?

Thanks

Yes. "Scripting elements" means JSP expressions, JSP scriptlets, and JSP declarations.