aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to contrain a JSP page to be scriptless?