my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes scripting-invalid tag 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 "scripting-invalid tag" Watch "scripting-invalid tag" New topic

scripting-invalid tag

Richard Rex
Ranch Hand

Joined: Sep 19, 2005
Posts: 100

I have put in the DD the following:

<web-app xmlns="" xmlns:xsi="" xsi:schemaLocation="" version="2.4">



I tried this jsp below named example.jsp located under context root,

10 x 5 = ${10 * 5} <br>
2 * 3 = <%= 2 * 3 %> <br>

The weird part is that it gives an output of

10 x 5 = 50
2 * 3 = 6

It seems that the jsp expression has been evaluated...
This should not work right? As I have stated in the DD that scripting is invalid... Am I missing something here?

"If you fail to plan, you plan to fail."<br /> <br />Chad<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS (next)
Richard Rex
Ranch Hand

Joined: Sep 19, 2005
Posts: 100

Sorry... false alarm! I haven't refreshed the file... This was my bad!

I was able to get this message now....

org.apache.jasper.JasperException: /example.jsp(4,11) Scripting elements ( <%!, <jsp eclaration, <%=, <jsp:expression, <%, <jsp:scriptlet ) are disallowed here.
I agree. Here's the link:
subject: scripting-invalid tag
It's not a secret anymore!