| Author |
isScriptingEnabled dircetive problem
|
muthulingam Jayakanthan
Ranch Hand
Joined: Feb 27, 2005
Posts: 43
|
|
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
|
 |
srinath anand
Ranch Hand
Joined: Nov 20, 2001
Posts: 30
|
|
|
The tag in the web.xml DD is el-ignored and not el-enabled.
|
SCJP2,SCWCD 1.4
|
 |
Nitish Bahadur
Ranch Hand
Joined: Aug 25, 2003
Posts: 118
|
|
|
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
Joined: Feb 27, 2005
Posts: 43
|
|
my main problem is <%@ page isScriptingEnabled="false" %> is not working in the page and giving me invalidate page dirctive message
|
 |
Nitish Bahadur
Ranch Hand
Joined: Aug 25, 2003
Posts: 118
|
|
|
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.
|
 |
P. Dunn
Ranch Hand
Joined: Feb 22, 2005
Posts: 34
|
|
See p319 HFS. It was in the Draft Specs [ March 01, 2005: Message edited by: P. Dunn ]
|
P.Dunn<br />SCJP, SCJD, SCEA & SCWCD
|
 |
 |
|
|
subject: isScriptingEnabled dircetive problem
|
|
|