RE: Euro character in c:out
Hi all, My problem seems to be a problem with my database. If I write directly in the JSP the euro symbol, there is no problem, but if I get it from the mysql database the ? appears :( So no problem with the tag lib ! Thanks Stéphane -Message d'origine- De : Roberto Mannai [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 4 octobre 2002 10:27 À : Tag Libraries Users List Objet : Re: Euro character in c:out (Same message in unicode format; note the '€') It is not a problem of trasmission encoding (contentType=text/html; charset=ISO-8859-1 ), but _source file_ encoding, in your IDE. If you generate a html page, you can use entity euro; , but in general, you should write 'u\20AC', euro's unicode encoding. (see http://www.unicode.org/Public/UNIDATA/DerivedAge.txt) Finally, this works: %@ page contentType=text/html; charset=ISO-8859-15 % html headtitleEuro Symbol/title/head body %=This works: \u20AC+ br This do not: €% /body /html ciao -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
response taglib library / jsp 1.2
Dear Colleagues, I would like to use the response taglib library in jsp's written in xml syntax: ?xml version = '1.0' encoding = 'windows-1252'? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 xmlns:res=http://jakarta.apache.org/taglibs/response-1.0; a href=res:encodeUrl/keuringsadmin/keuringen_administratie.jsp/res:encodeU rl [somewhere in www]/a /jsp:root This leads to a compiler error: '' cannot appear in attribute value. I tried substituting '' with lt;. This leads to an output like : http://[localhost]/keuringsadmin/res:encodeUrl/keuringsadmin/keuringen_adm inistratie.jsp/res:encodeUrl. I am using OC4J on Windows 2000. Any suggestions would be much appreciated. Thomas Delnoij Internet Engineer IMN - SSE Baarn Mobile: +31 6 144 300 14 EMail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Euro character in c:out
Probably, euro symbol is stored with an erroneous encoding in DB, or again is matter of flat file's encoding. - Original Message - From: zze-JEANJEAN S ext FTRD/DMI/SOP [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 11:18 AM Subject: RE: Euro character in c:out Hi all, My problem seems to be a problem with my database. If I write directly in the JSP the euro symbol, there is no problem, but if I get it from the mysql database the ? appears :( So no problem with the tag lib ! Thanks Stéphane -Message d'origine- De : Roberto Mannai [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 4 octobre 2002 10:27 À : Tag Libraries Users List Objet : Re: Euro character in c:out (Same message in unicode format; note the '€') It is not a problem of trasmission encoding (contentType=text/html; charset=ISO-8859-1 ), but _source file_ encoding, in your IDE. If you generate a html page, you can use entity euro; , but in general, you should write 'u\20AC', euro's unicode encoding. (see http://www.unicode.org/Public/UNIDATA/DerivedAge.txt) Finally, this works: %@ page contentType=text/html; charset=ISO-8859-15 % html headtitleEuro Symbol/title/head body %=This works: \u20AC+ br This do not: €% /body /html ciao -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: response taglib library / jsp 1.2
Would that mean this? jsp:textlt;a href=jsp:text/res:encodeUrl/keuringsadmin/keuringen_administratie.jsp/ res:encodeUrljsp:textgt;[somewhere in www]lt;/agt;jsp:text/ -Original Message- From: Gideon, Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 12:15 PM To: 'Tag Libraries Users List' Subject: RE: response taglib library / jsp 1.2 Did you surround the a/ tag with a jsp:text/ tag to let the JSP container know this is template text as opposed to JSP tags? Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com -Original Message- From: Thomas Delnoij [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 5:16 AM To: [EMAIL PROTECTED] Subject: response taglib library / jsp 1.2 Dear Colleagues, I would like to use the response taglib library in jsp's written in xml syntax: ?xml version = '1.0' encoding = 'windows-1252'? jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=1.2 xmlns:res=http://jakarta.apache.org/taglibs/response-1.0; a href=res:encodeUrl/keuringsadmin/keuringen_administratie.js p/res:encodeU rl [somewhere in www]/a /jsp:root This leads to a compiler error: '' cannot appear in attribute value. I tried substituting '' with lt;. This leads to an output like : http://[localhost]/keuringsadmin/res:encodeUrl/keuringsadmin /keuringen_adm inistratie.jsp/res:encodeUrl. I am using OC4J on Windows 2000. Any suggestions would be much appreciated. Thomas Delnoij Internet Engineer IMN - SSE Baarn Mobile: +31 6 144 300 14 EMail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL and HashMap: How does it work?
Hi all According to the documentation, it's possible to get data from a HashMap in JSTL. Unfortunately, it doesn't really work for me... Here's the deal: A stock has a collection of charts, thus: stock.numberOfCharts = c:out value=${stock.numberOfCharts}/br stock.charts = c:out value=${stock.charts}/ c:forEach var=chart items=${stock.charts} br- chart = c:out value=${chart}/ /c:forEach results in stock.numberOfCharts = 9 stock.charts = {1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c, 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7, 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f, 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38, 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e, 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e, 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7, 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114, YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0} - chart = 1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c - chart = 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7 - chart = 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f - chart = 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38 - chart = 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e - chart = 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e - chart = 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7 - chart = 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114 - chart = YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0 which is fine. However, how can I address one entry? If I try chart = c:out value=${stock.charts[1M]}/ I get javax.servlet.ServletException: /jsp/financialdata/show.jsp(33,40) Attribute 1M has no value By the way, my getCharts() returns a LinkedHashMap (I wanted the same sequence as when I inserted the objects). Theoretically, shouldn't I be able to traverse it like e.g. an ArrayList? chart[0] = c:out value=${stock.charts[0]}/ doesn't give me anything, though... Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSTL and HashMap: How does it work?
I don't know JSTL, but Hashmap does not implement Collection interface. Regards, Roberto - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 8:02 PM Subject: JSTL and HashMap: How does it work? Hi all According to the documentation, it's possible to get data from a HashMap in JSTL. Unfortunately, it doesn't really work for me... Here's the deal: A stock has a collection of charts, thus: stock.numberOfCharts = c:out value=${stock.numberOfCharts}/br stock.charts = c:out value=${stock.charts}/ c:forEach var=chart items=${stock.charts} br- chart = c:out value=${chart}/ /c:forEach results in stock.numberOfCharts = 9 stock.charts = {1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c, 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7, 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f, 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38, 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e, 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e, 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7, 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114, YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0} - chart = 1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c - chart = 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7 - chart = 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f - chart = 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38 - chart = 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e - chart = 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e - chart = 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7 - chart = 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114 - chart = YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0 which is fine. However, how can I address one entry? If I try chart = c:out value=${stock.charts[1M]}/ I get javax.servlet.ServletException: /jsp/financialdata/show.jsp(33,40) Attribute 1M has no value By the way, my getCharts() returns a LinkedHashMap (I wanted the same sequence as when I inserted the objects). Theoretically, shouldn't I be able to traverse it like e.g. an ArrayList? chart[0] = c:out value=${stock.charts[0]}/ doesn't give me anything, though... Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSTL and HashMap: How does it work?
[EMAIL PROTECTED] wrote: chart = c:out value=${stock.charts[1M]}/ I get javax.servlet.ServletException: /jsp/financialdata/show.jsp(33,40) Attribute 1M has no value I'm way out of my area of expertise here, but I was immediately concerned about the double quotes--does chart = c:out value='${stock.charts[1M]}'/ work? Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL sql
Hi, Is there a way to set an 'order by' in JSTL much like you would with SQL: ORDER BY birthdate DESC Thanks, Stef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSTL and HashMap: How does it work?
Doesn't matter, the JSTL spec says that the iteration tags should work with Maps, as well as arrays and instances of the Collection interface. Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com -Original Message- From: Roberto Mannai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 2:26 PM To: Tag Libraries Users List Subject: Re: JSTL and HashMap: How does it work? I don't know JSTL, but Hashmap does not implement Collection interface. Regards, Roberto - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 8:02 PM Subject: JSTL and HashMap: How does it work? Hi all According to the documentation, it's possible to get data from a HashMap in JSTL. Unfortunately, it doesn't really work for me... Here's the deal: A stock has a collection of charts, thus: stock.numberOfCharts = c:out value=${stock.numberOfCharts}/br stock.charts = c:out value=${stock.charts}/ c:forEach var=chart items=${stock.charts} br- chart = c:out value=${chart}/ /c:forEach results in stock.numberOfCharts = 9 stock.charts = {1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c, 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7, 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f, 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38, 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e, 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e, 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7, 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114, YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0} - chart = 1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c - chart = 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7 - chart = 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f - chart = 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38 - chart = 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e - chart = 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e - chart = 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7 - chart = 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114 - chart = YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0 which is fine. However, how can I address one entry? If I try chart = c:out value=${stock.charts[1M]}/ I get javax.servlet.ServletException: /jsp/financialdata/show.jsp(33,40) Attribute 1M has no value By the way, my getCharts() returns a LinkedHashMap (I wanted the same sequence as when I inserted the objects). Theoretically, shouldn't I be able to traverse it like e.g. an ArrayList? chart[0] = c:out value=${stock.charts[0]}/ doesn't give me anything, though... Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSTL and HashMap: How does it work?
With a Map in the c:forEach/ tag, you need to de-reference the value explicitly in your EL in the nested c:out/, like so: stock.numberOfCharts = c:out value=${stock.numberOfCharts}/br stock.charts = c:out value=${stock.charts}/ c:forEach var=chart items=${stock.charts} br- chart = c:out value=${chart.value}/ //-^ /c:forEach The c:forEach/ tag gets a Set by calling the entrySet() method of the Map, then iterates over that. The Set contains Map.Entry instances which define getKey() and getValue() methods which can be accessed in the usual way, as Java Bean properties, in EL. Thomas Gideon Sr. Software Developer B2eMarkets 301.230.2236 Tel. 301.230.2248 Fax. [EMAIL PROTECTED] www.B2eMarkets.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: JSTL and HashMap: How does it work? Hi all According to the documentation, it's possible to get data from a HashMap in JSTL. Unfortunately, it doesn't really work for me... Here's the deal: A stock has a collection of charts, thus: stock.numberOfCharts = c:out value=${stock.numberOfCharts}/br stock.charts = c:out value=${stock.charts}/ c:forEach var=chart items=${stock.charts} br- chart = c:out value=${chart}/ /c:forEach results in stock.numberOfCharts = 9 stock.charts = {1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c, 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7, 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f, 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38, 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e, 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e, 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7, 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114, YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0} - chart = 1M=ch.xobix.contentgroup.controller.ImageWrapper@f6ae1c - chart = 2M=ch.xobix.contentgroup.controller.ImageWrapper@20d6b7 - chart = 3M=ch.xobix.contentgroup.controller.ImageWrapper@f08d0f - chart = 6M=ch.xobix.contentgroup.controller.ImageWrapper@bcfa38 - chart = 1Y=ch.xobix.contentgroup.controller.ImageWrapper@cfaf6e - chart = 2Y=ch.xobix.contentgroup.controller.ImageWrapper@6989e - chart = 3Y=ch.xobix.contentgroup.controller.ImageWrapper@dd7a7 - chart = 5Y=ch.xobix.contentgroup.controller.ImageWrapper@c94114 - chart = YTD=ch.xobix.contentgroup.controller.ImageWrapper@cf9bf0 which is fine. However, how can I address one entry? If I try chart = c:out value=${stock.charts[1M]}/ I get javax.servlet.ServletException: /jsp/financialdata/show.jsp(33,40) Attribute 1M has no value By the way, my getCharts() returns a LinkedHashMap (I wanted the same sequence as when I inserted the objects). Theoretically, shouldn't I be able to traverse it like e.g. an ArrayList? chart[0] = c:out value=${stock.charts[0]}/ doesn't give me anything, though... Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL and sort ordering of the item in the Result object.
My previous email was a little too vague so I will try again. I am populating a JSTL Result object with a cached Rowset derived from a bean method like so: Result r = ResultSupport.toResult(dataBase.getAllUsers()); pageContext.setAttribute(r, r); I then loop though the records with a forEach tag: c:forEach items=${row} var=value tdc:out value=${value}/nbsp;/td /c:forEach Is there a way (within the Result object) to set the order of the records displayed by the forEach tag? I basically like to imitate an SQL ' order by ' without having to go back to the database. Thanks, Stef
Re: JSTL and sort ordering of the item in the Result object.
Stefan wrote: My previous email was a little too vague so I will try again. I am populating a JSTL Result object with a cached Rowset derived from a bean method like so: Result r = ResultSupport.toResult(dataBase.getAllUsers()); pageContext.setAttribute(r, r); I then loop though the records with a forEach tag: c:forEach items=${row} var=value tdc:out value=${value}/nbsp;/td /c:forEach Is there a way (within the Result object) to set the order of the records displayed by the forEach tag? I basically like to imitate an SQL ' order by ' without having to go back to the database. No. See below for a reply that Shawn sent a few months ago on a similar question. -- Pierre Original Message Subject: Re: jstl sort Date: Tue, 6 Aug 2002 08:46:45 -0400 (EDT) From: Shawn Bayern [EMAIL PROTECTED] Reply-To: Tag Libraries Users List [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] On Tue, 6 Aug 2002, Þorgils Völundarson wrote: Is it possible to sort information from jstl x:forEach? JSTL's x:forEach tag always uses the order of the node-set returned from the XPath 'select' attribute. JSTL's c:forEach always returns the items in collection order. In JSTL 1.0, there isn't a way to modify this behavior. The best thing to do is to sort the collection or node-set outside of your JSP page (e.g., in a servlet) and then expose the sorted collection to your page. -- Shawn Bayern JSTL in Action http://www.jstlbook.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DBtags ( accessing the Result Set returned from the DAO )
hi Stefan, Would this ( JSTL tag library ) work for a SQL results set? The JSTL spec lists the data types that are supported for items in the forEach tag. And it incluses Arrays, java.util.Collection etc. It does not mention SQL. Thanks, poornima - Original Message - From: Stefan [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 2:25 PM Subject: Re: DBtags ( accessing the Result Set returned from the DAO ) Hi: Did this to access a simple Java bean that has a method that returns a cached rowset. import : javax.servlet.jsp.jstl.sql.* // Using static methods of the imported class. Result r = ResultSupport.toResult(your_Method_that_Returns_a_cached_recordset); pageContext.setAttribute(r, r); c:forEach items=${r.columnNames} var=col thc:out value=${col}//th /c:forEach Stefan - Original Message - From: Poornima Shrihari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 11:41 PM Subject: DBtags ( accessing the Result Set returned from the DAO ) hi all, I have a query on dbtags tag library. I have an enterprise application where the DAO accesses the database and returns the ResultSet to the JSP ( via EJB ). How can I access this ResultSet directly in the JSP ( without using the sql:query tag ). Thanks, poornima -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DBtags ( accessing the Result Set returned from the DAO )
Stefan, dont bother, i found the answer myself as i read through the spec. thanks a lot... poornima - Original Message - From: Poornima Shrihari [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 3:47 PM Subject: Re: DBtags ( accessing the Result Set returned from the DAO ) hi Stefan, Would this ( JSTL tag library ) work for a SQL results set? The JSTL spec lists the data types that are supported for items in the forEach tag. And it incluses Arrays, java.util.Collection etc. It does not mention SQL. Thanks, poornima - Original Message - From: Stefan [EMAIL PROTECTED] To: Tag Libraries Users List [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 2:25 PM Subject: Re: DBtags ( accessing the Result Set returned from the DAO ) Hi: Did this to access a simple Java bean that has a method that returns a cached rowset. import : javax.servlet.jsp.jstl.sql.* // Using static methods of the imported class. Result r = ResultSupport.toResult(your_Method_that_Returns_a_cached_recordset); pageContext.setAttribute(r, r); c:forEach items=${r.columnNames} var=col thc:out value=${col}//th /c:forEach Stefan - Original Message - From: Poornima Shrihari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 11:41 PM Subject: DBtags ( accessing the Result Set returned from the DAO ) hi all, I have a query on dbtags tag library. I have an enterprise application where the DAO accesses the database and returns the ResultSet to the JSP ( via EJB ). How can I access this ResultSet directly in the JSP ( without using the sql:query tag ). Thanks, poornima -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Does JSTL XML taglibs ignore XMLNamespace of input document?
Hi, I just started learning JSTL, am especially interested in XML-related taglibs. I use jakarta-taglibs/standard-1.0.1 on tomcat4.1.3. I coded the following JSP page - %@ taglib uri=/WEB-INF/x.tld prefix=x % x:parse var=NoNSabboon/b/a/x:parse x:parse var=WithNSn:a xmlns:n =someNamespacen:bbaan/n:b/n:a/x:parse $NoNS/a/b=x:out select=$NoNS/a/b/br $WithNS/a/b=x:out select=$WithNS/a/b/br $WithNS/n:a/n:b=x:out select=$WithNS/n:a/n:b/ - The only difference between $NoNS object and $WithNS object is XML Namespace usage. I got the following response from the application. - $NoNS/a/b=boon $WithNS/a/b= $WithNS/n:a/n:b= - I can not get baan output. I do not see how the XPath expression should be written for $WithNS object using JSTL taglib I read JSTL specification document and as many resources on the web as I could find, and I have a feel that the JSTL specification is not explicit enough how to deal with XML namespace used in the input source. Am I wrong? If I am wrong and the told how to solve this, I would be very much pleased. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]