Re: XTags download
Hello Vijay did you try: http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi cheers Isabelle Vijay wrote: Hi there, I am unable to download XTags i tried both these links http://people.apache.org/builds/jakarta-taglibs/nightly/src/ http://people.apache.org/builds/jakarta-taglibs/nightly/ i get page not found error. pls help me to download XTags. Thank you, Vijay. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:reditect
Hassan Schroeder wrote: On Jan 2, 2008 9:38 AM, T. Lamine Ba [EMAIL PROTECTED] wrote: I am looking for an alternative to the taglib c:redirect. I would like to use a library that can execute a redirection from one page to another while passing custom parameters (c:param) without exposing these latter on the url; such as the Form Submit procedure. I don't believe there's any way to send a redirect that won't result in a GET request from the browser, meaning any additional params /will/ be exposed in the URL. Perhaps you could just put whatever you're trying to pass into the session instead. or perhaps use URL rewrite, e.g. http://tuckey.org/urlrewrite/ ? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl x:parse outputs data
with both Xalan 2.7.0 and 2.5.0 I now get the error WARN: Unhandled exception org.apache.jasper.JasperException: Exception in JSP: /index.jspx:102 100:c:import var=rssFeed url=http://www.expasy.org/spotlight/index.xml/ 101:x:parse var=rss xml=${rssFeed}/ 102: x:out select=$rss//*[name()='channel']/*[name()='title'][1] escapeXml=false/ ERROR: Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot access session scope in page that does not participate in any session: java.lang.IllegalStateException: Cannot access session scope in page that does not participate in any session Kris Schneider wrote: You'll need both Xerces and Xalan (Xerces should be included in the Xalan download). I believe the release notes for Standard 1.1 state that Xalan 2.5 is required. Use this link: http://www.apache.org/dyn/closer.cgi/xml/xalan-j to download the latest version. If you run into any issues, you can try falling back to 2.5.0: http://archive.apache.org/dist/xml/xalan-j/binaries/xalan-j_2_5_0-bin.zip From the ZIP file, you'll want the following JARs: xalan.jar xercesImpl.jar xml-apis.jar -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl x:parse outputs data
Thanks Kris, x:parse tag is now silent :-) however, I can't get x:out to output anything, it throws ERROR: Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: org/apache/xpath/XPathException: java.lang.NoClassDefFoundError: org/apache/xpath/XPathException I read somewhere that this could be due to a missing xerces library, my application has xerces.jar, I am completely lost :-( Kris Schneider wrote: You don't need those taglib entries in web.xml. Remove them and use the proper JSTL 1.1 URIs: jsp:root xmlns:jsp=”http://java.sun.com/JSP/Page” xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; xmlns:x=http://java.sun.com/jsp/jstl/xml; ... version=”2.0 You don't need a taglib entry for the Struts taglib either. Find out what its proper URI is and use it instead of struts-html. Isabelle Phan wrote: this is the complete declaration in the JSP: jsp:root xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:tags=urn:jsptagdir:/WEB-INF/tags/ xmlns:c=jstl-core xmlns:fmt=jstl-fmt xmlns:x=jstl-xml xmlns:html=struts-html version=2.0 and in web.xml: jsp-config taglib taglib-urijstl-core/taglib-uri taglib-location/WEB-INF/tld/c.tld/taglib-location /taglib taglib taglib-urijstl-functions/taglib-uri taglib-location/WEB-INF/tld/fn.tld/taglib-location /taglib taglib taglib-urijstl-fmt/taglib-uri taglib-location/WEB-INF/tld/fmt.tld/taglib-location /taglib taglib taglib-urijstl-xml/taglib-uri taglib-location/WEB-INF/tld/x.tld/taglib-location /taglib Kris Schneider wrote: I would think you'd be using these: xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:x=http://java.sun.com/jsp/jstl/xml; Isabelle Phan wrote: Hi Kris the x taglib is declared like other jstl libraries: xmlns:x=jstl-xml it follows the taglib declarations in web.xml, but from the output you are right, it seems like the tag is ignored: x:parse escapeXml=true xml=?xml version=1.0 encoding=ISO-8859-1? etc... I have the vague feeling it's some stupid typo... thanks for your help Isabelle Kris Schneider wrote: Are you sure you're properly declaring the x taglib? It almost looks like x:parse is being treated as a plain XML element and ${rssFeed} is simply evaluated and used for the value of the xml attribute. Can you view the source of the generated page? Isabelle Phan wrote: My problem: x:parse is outputting the RSS feed content even though the JSP does not contain x:out or c:out statement The code: c:import var=rssFeed url=http://www.expasy.org/spotlight/index.xml/ x:parse var=rss xml=${rssFeed}/ output: http://www.expasy.org/spotlight/ one month, one protein en-us [EMAIL PROTECTED] 2007-03-26T10:13:59+01:00 hourly 1 2000-01-01T12:00+00:00 etc... until: while obestatin reports adequacy. [EMAIL PROTECTED]://www.expasy.org/spotlight/ Article 2006-01-19T13:22:59+01:00 var=rss/ It looks as if part of the x:parse tag is printed on the HTML page! I am using JSTL 1.1 Anybody seen this before? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jstl x:parse outputs data
My problem: x:parse is outputting the RSS feed content even though the JSP does not contain x:out or c:out statement The code: c:import var=rssFeed url=http://www.expasy.org/spotlight/index.xml/ x:parse var=rss xml=${rssFeed}/ output: http://www.expasy.org/spotlight/ one month, one protein en-us [EMAIL PROTECTED] 2007-03-26T10:13:59+01:00 hourly 1 2000-01-01T12:00+00:00 etc... until: while obestatin reports adequacy. [EMAIL PROTECTED]://www.expasy.org/spotlight/ Article 2006-01-19T13:22:59+01:00 var=rss/ It looks as if part of the x:parse tag is printed on the HTML page! I am using JSTL 1.1 Anybody seen this before? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl x:parse outputs data
Hi Kris the x taglib is declared like other jstl libraries: xmlns:x=jstl-xml it follows the taglib declarations in web.xml, but from the output you are right, it seems like the tag is ignored: x:parse escapeXml=true xml=?xml version=1.0 encoding=ISO-8859-1? etc... I have the vague feeling it's some stupid typo... thanks for your help Isabelle Kris Schneider wrote: Are you sure you're properly declaring the x taglib? It almost looks like x:parse is being treated as a plain XML element and ${rssFeed} is simply evaluated and used for the value of the xml attribute. Can you view the source of the generated page? Isabelle Phan wrote: My problem: x:parse is outputting the RSS feed content even though the JSP does not contain x:out or c:out statement The code: c:import var=rssFeed url=http://www.expasy.org/spotlight/index.xml/ x:parse var=rss xml=${rssFeed}/ output: http://www.expasy.org/spotlight/ one month, one protein en-us [EMAIL PROTECTED] 2007-03-26T10:13:59+01:00 hourly 1 2000-01-01T12:00+00:00 etc... until: while obestatin reports adequacy. [EMAIL PROTECTED]://www.expasy.org/spotlight/ Article 2006-01-19T13:22:59+01:00 var=rss/ It looks as if part of the x:parse tag is printed on the HTML page! I am using JSTL 1.1 Anybody seen this before? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl x:parse outputs data
this is the complete declaration in the JSP: jsp:root xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:tags=urn:jsptagdir:/WEB-INF/tags/ xmlns:c=jstl-core xmlns:fmt=jstl-fmt xmlns:x=jstl-xml xmlns:html=struts-html version=2.0 and in web.xml: jsp-config taglib taglib-urijstl-core/taglib-uri taglib-location/WEB-INF/tld/c.tld/taglib-location /taglib taglib taglib-urijstl-functions/taglib-uri taglib-location/WEB-INF/tld/fn.tld/taglib-location /taglib taglib taglib-urijstl-fmt/taglib-uri taglib-location/WEB-INF/tld/fmt.tld/taglib-location /taglib taglib taglib-urijstl-xml/taglib-uri taglib-location/WEB-INF/tld/x.tld/taglib-location /taglib Kris Schneider wrote: I would think you'd be using these: xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:x=http://java.sun.com/jsp/jstl/xml; Isabelle Phan wrote: Hi Kris the x taglib is declared like other jstl libraries: xmlns:x=jstl-xml it follows the taglib declarations in web.xml, but from the output you are right, it seems like the tag is ignored: x:parse escapeXml=true xml=?xml version=1.0 encoding=ISO-8859-1? etc... I have the vague feeling it's some stupid typo... thanks for your help Isabelle Kris Schneider wrote: Are you sure you're properly declaring the x taglib? It almost looks like x:parse is being treated as a plain XML element and ${rssFeed} is simply evaluated and used for the value of the xml attribute. Can you view the source of the generated page? Isabelle Phan wrote: My problem: x:parse is outputting the RSS feed content even though the JSP does not contain x:out or c:out statement The code: c:import var=rssFeed url=http://www.expasy.org/spotlight/index.xml/ x:parse var=rss xml=${rssFeed}/ output: http://www.expasy.org/spotlight/ one month, one protein en-us [EMAIL PROTECTED] 2007-03-26T10:13:59+01:00 hourly 1 2000-01-01T12:00+00:00 etc... until: while obestatin reports adequacy. [EMAIL PROTECTED]://www.expasy.org/spotlight/ Article 2006-01-19T13:22:59+01:00 var=rss/ It looks as if part of the x:parse tag is printed on the HTML page! I am using JSTL 1.1 Anybody seen this before? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]