Win a copy of Head First Agile this week in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

Removing scriptlets from a JSP  RSS feed

 
Yogesh Gandhi
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have read on internet that scriplets should not only be avoided, but any JSP should rather contain ABSOLUTELY NO JAVA CODE...

Is it really possible that every possible JSP that can be written with scriplet can also be written WITHOUT IT?

Lets say for Example

I have the following scriptlet

I am setting Header in response.

In Header, I am setting Pragma to no-cache and Cache-Control to no-cache

All this was being done in a scriplet..

Is there any way this can be done without it?

Also, i would be happy to know about a page, where in all the mappings from scriplet to JSTL are given, which can help me remove every possible scriplet in any JSP page.

I would like to learn the best practices and make it a habit



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue any discussion in your original post on this topic.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!