• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

isScriptingEnabled dircetive problem

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I installeded tomcat5.5.x version in windows XP, Copies all JSTL 1.1 jar files to c:/tomcat/webapps/Root/web-inf/lib and copied all tld files to WEB-INF. and also added I gave folloing lines to Web.XML

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>;
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt-rt</taglib-uri>;
<taglib-location>/WEB-INF/fmt-1_0-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>;
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core-rt</taglib-uri>;
<taglib-location>/WEB-INF/c-1_0-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>;
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/sql-rt</taglib-uri>;
<taglib-location>/WEB-INF/sql-1_0-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/x</taglib-uri>;
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/x-rt</taglib-uri>;
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>


Now EL coding is working and if I use

<%@ page isELIgnored="true" %> in the page, then it works fine after I addedd following in the web.xml

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">


The proble is , I cant use
<%@ page isScriptingEnabled="false" %>, since i give me invalide page directive message. and also it is not responsing the following elements if i add in the web.xml

<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-enabled>false</el-enabled>
</jsp-property-group>
</jsp-config>


Please help me
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The tag in the web.xml DD is el-ignored and not el-enabled.
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The DTD you are using is 2.3. This should be a 2.4 DTD, which by default has EL enabled.
 
muthulingam Jayakanthan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my main problem is
<%@ page isScriptingEnabled="false" %> is not working in the page and giving me invalidate page dirctive message
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I know, there is nothing called isScriptingEnabled. This used to be a attribute for the page directive prior to the 2.4 official release. I believe this was dropped. Scripting(not EL) can only be enabled Application wide using web.xml.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See p319 HFS. It was in the Draft Specs
[ March 01, 2005: Message edited by: P. Dunn ]
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic