Re: Issue using x:transform

2004-02-27 Thread Kris Schneider
Make sure you're using JSTL 1.1 with TC 5. The taglib directives should look
like:

%@ taglib uri=http://java.sun.com/jsp/jstl/xml; prefix=x %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

Quoting Kralidis,Tom [Burlington] [EMAIL PROTECTED]:

 
 Hi,
 
 Using jakarta-tomcat-5.0.18, I have a simple JSP:
 
 [EMAIL PROTECTED] contentType=text/html%
 %@ taglib uri=http://java.sun.com/jstl/xml; prefix=x %
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
 html
   head
   titletest/title
   /head
   body
   form name=myform method=post action=none
   c:import
 url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/demo/locations
 /Global.xml var=xmlDoc /
   c:import
 url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/lib/widget/loc
 ations/Locations2Select.xsl var=xsltDoc /
   x:transform xml=${xmlDoc} xslt=${xsltDoc} /
   /form
   /body
 /html
 
 ...however, when I run this, I receive error:
 
 org.apache.jasper.JasperException: /tk_test/xsl.jsp(14,0) According to TLD
 or attribute directive in tag file, attribute xml does not accept any
 expressions
 more error messages
 
 The wierd thing is I've seen a similar example on the onjava.com site at:
 
 http://www.onjava.com/pub/a/onjava/excerpt/jsvltjspckbk_chap01/index.html?pa
 ge=3
 
 Any idea what may be incorrect in the code above?
 
 Thanks
 
 ..Tom
 
 =
 Tom Kralidis
 Systems Scientist
 Environment Canada
 Tel: +01-905-336-4409
 http://www.ec.gc.ca/cise/

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Issue using x:transform

2004-02-27 Thread Kralidis,Tom [Burlington]

This worked, thanks alot.  I tried putting these into $CATALINA_HOME/common,
but it didn't work.  Basically, I wouldn't want to keep copying these as
webapps pile up.

Thanks

..Tom

 -Original Message-
 From: Kris Schneider [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 27, 2004 10:52 AM
 To: Tag Libraries Users List
 Subject: Re: Issue using x:transform
 
 
 Make sure you're using JSTL 1.1 with TC 5. The taglib 
 directives should look
 like:
 
 %@ taglib uri=http://java.sun.com/jsp/jstl/xml; prefix=x 
 % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 
 Quoting Kralidis,Tom [Burlington] [EMAIL PROTECTED]:
 
  
  Hi,
  
  Using jakarta-tomcat-5.0.18, I have a simple JSP:
  
  [EMAIL PROTECTED] contentType=text/html%
  %@ taglib uri=http://java.sun.com/jstl/xml; prefix=x % 
 %@ taglib 
  uri=http://java.sun.com/jstl/core; prefix=c % html
  head
  titletest/title
  /head
  body
  form name=myform method=post action=none
  c:import
  
 url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/
 demo/locations
  /Global.xml var=xmlDoc /
  c:import
  
 url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/
 lib/widget/loc
  ations/Locations2Select.xsl var=xsltDoc /
  x:transform xml=${xmlDoc} xslt=${xsltDoc} /
  /form
  /body
  /html
  
  ...however, when I run this, I receive error:
  
  org.apache.jasper.JasperException: /tk_test/xsl.jsp(14,0) 
 According to 
  TLD or attribute directive in tag file, attribute xml does 
 not accept 
  any expressions more error messages
  
  The wierd thing is I've seen a similar example on the 
 onjava.com site 
  at:
  
  
 http://www.onjava.com/pub/a/onjava/excerpt/jsv ltjspckbk_chap01/index.h
  tml?pa
  ge=3
  
  Any idea what may be incorrect in the code above?
  
  Thanks
  
  ..Tom
  
  =
  Tom Kralidis
  Systems Scientist
  Environment Canada
  Tel: +01-905-336-4409
  http://www.ec.gc.ca/cise/
 
 -- 
 Kris Schneider mailto:[EMAIL PROTECTED]
 D.O.Tech   http://www.dotech.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Issue using x:transform

2004-02-27 Thread Kris Schneider
Glad it's working. Although it might seem like a pain, you really should resist
the temptation to dump stuff into $CATALINA_HOME/common/lib (or the equivalent
for a different app server). Obviously, there are some things that can make
sense to install there (like JDBC drivers), but taglibs and app frameworks
(like Struts) really should be kept in WEB-INF/lib.

Quoting Kralidis,Tom [Burlington] [EMAIL PROTECTED]:

 
 This worked, thanks alot.  I tried putting these into $CATALINA_HOME/common,
 but it didn't work.  Basically, I wouldn't want to keep copying these as
 webapps pile up.
 
 Thanks
 
 ..Tom
 
  -Original Message-
  From: Kris Schneider [mailto:[EMAIL PROTECTED] 
  Sent: Friday, February 27, 2004 10:52 AM
  To: Tag Libraries Users List
  Subject: Re: Issue using x:transform
  
  
  Make sure you're using JSTL 1.1 with TC 5. The taglib 
  directives should look
  like:
  
  %@ taglib uri=http://java.sun.com/jsp/jstl/xml; prefix=x 
  % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
  
  Quoting Kralidis,Tom [Burlington] [EMAIL PROTECTED]:
  
   
   Hi,
   
   Using jakarta-tomcat-5.0.18, I have a simple JSP:
   
   [EMAIL PROTECTED] contentType=text/html%
   %@ taglib uri=http://java.sun.com/jstl/xml; prefix=x % 
  %@ taglib 
   uri=http://java.sun.com/jstl/core; prefix=c % html
 head
 titletest/title
 /head
 body
 form name=myform method=post action=none
 c:import
   
  url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/
  demo/locations
   /Global.xml var=xmlDoc /
 c:import
   
  url=http://cgdi-dev.geoconnections.org/prototypes/mapbuilder/
  lib/widget/loc
   ations/Locations2Select.xsl var=xsltDoc /
 x:transform xml=${xmlDoc} xslt=${xsltDoc} /
 /form
 /body
   /html
   
   ...however, when I run this, I receive error:
   
   org.apache.jasper.JasperException: /tk_test/xsl.jsp(14,0) 
  According to 
   TLD or attribute directive in tag file, attribute xml does 
  not accept 
   any expressions more error messages
   
   The wierd thing is I've seen a similar example on the 
  onjava.com site 
   at:
   
   
  http://www.onjava.com/pub/a/onjava/excerpt/jsv ltjspckbk_chap01/index.h
   tml?pa
   ge=3
   
   Any idea what may be incorrect in the code above?
   
   Thanks
   
   ..Tom
   
   =
   Tom Kralidis
   Systems Scientist
   Environment Canada
   Tel: +01-905-336-4409
   http://www.ec.gc.ca/cise/
  
  -- 
  Kris Schneider mailto:[EMAIL PROTECTED]
  D.O.Tech   http://www.dotech.com/

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]