This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes how to contrain a JSP page to be scriptless? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "how to contrain a JSP page to be scriptless?" Watch "how to contrain a JSP page to be scriptless?" New topic
Author

how to contrain a JSP page to be scriptless?

Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
I know I can set <scripting-invalid> to be true for this purpose, like this:

<jsp-config>
<jsp-property-group>
<url-pattern> *.jsp </url-pattern>
<scripting-invalid>
true
</scripting-invalid>
</jsp-property-group>
</jsp-config>

is there a way to set it in jsp directives? like isElIgnored for EL?
Sehrish Hasan
Ranch Hand

Joined: Aug 15, 2005
Posts: 43
No, there is no way to disable it through JSP directives. In the draft of JSP 2.0 spec, they had a directive to disable it thru directive but they took it out in Final spec.
Claudio Lande
Ranch Hand

Joined: Mar 24, 2005
Posts: 45
Originally posted by M Abidi:
No, there is no way to disable it through JSP directives. In the draft of JSP 2.0 spec, they had a directive to disable it thru directive but they took it out in Final spec.


That's right. On the other hand you can enable/disable EL in DD or in JSP pages.


SCJP 1.4, SCWCD 1.4, PMP, ITIL V3 Foundation
 
Consider Paul's rocket mass heater.
 
subject: how to contrain a JSP page to be scriptless?
 
Similar Threads
xml mapping Head First Servlets and JSP
scripting-invalid question
isELIgnored="false"
Scripting Invalid Tag - tomcat 5.5
scripting-invalid