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 Scripting invalid 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 "Scripting invalid" Watch "Scripting invalid" New topic
Author

Scripting invalid

Salil Dhawan
Ranch Hand

Joined: Jul 18, 2006
Posts: 55
Hello if i do a <scripting-invalid> as true in DD and put scripting elements in JSP,will JSP not compile or will show scripting elements text as normal text?


I think JSP should not compile but want to confirm


-Salil


Salil Dhawan<br />SCJP 1.4, SCWCD 5.0, SCDJWS 1.4<br /> <br /><a href="http://www.views-point.blogspot.com" target="_blank" rel="nofollow">ViewPoint</a>
Salil Dhawan
Ranch Hand

Joined: Jul 18, 2006
Posts: 55
Also what will happen if i do <el-ignored> to true and write EL code in JSP?
I think i this case it will appear as normal text in JSP

Please clear confusion in case of both <scripting-invalid> and <el-ignored> tags.What will be its impact on JSP

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
Both of these are quite easy to test, aren't they? That would give you an answer much faster.


Ping & DNS - my free Android networking tools app
Salil Dhawan
Ranch Hand

Joined: Jul 18, 2006
Posts: 55
i tested it and found that in case of EL it shows EL text as normal text ( if i do <el-ignored> to true) and in case of scripting invalid it gives JSP compilation error.I just want to know is this right?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
It certainly sounds correct, but the JSP specification is the final arbiter of what should or should not happen. Alternatively, you could run the code on the servlet/JSP reference implementation (Tomcat); it's main reason for existence is to be faithful to the specifications.
 
jQuery in Action, 2nd edition
 
subject: Scripting invalid
 
Similar Threads
scripting-invalid tag
Scripting Invalid
Scripting-Invalid(Usage)
scripting invalid
scripting-invalid