Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-15 Thread Kris Schneider
s & Regards > Rajasekhar > > > > > > > --- On Tue, 15/7/08, Kris Schneider <[EMAIL PROTECTED]> wrote: > > From: Kris Schneider <[EMAIL PROTECTED]> > Subject: Re: JSTL XML ---org/apache/xpath/XPathException > To: "Tag Libraries Users List"

Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-15 Thread Rajasekhar
. cant these jars workout if they are placed in tomcat/common/lib directory ?? Thanks & Regards Rajasekhar       --- On Tue, 15/7/08, Kris Schneider <[EMAIL PROTECTED]> wrote: From: Kris Schneider <[EMAIL PROTECTED]> Subject: Re: JSTL XML ---org/apache/xpath/XPathException To: &quo

Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-15 Thread Kris Schneider
.service(HttpJspBase.java:97) >javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) >

Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-14 Thread Rajasekhar
Servlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.   Thanks & Regards Rajasekhar         --- On Mon, 14/7/08, K

Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-14 Thread Rahul Akolkar
CC'ing OP since I moderated the message. Rajasekhar - Please see response below. Also, please subscribe to this mailing list before posting. Details: http://jakarta.apache.org/site/mail2.html#Taglibs -Rahul On 7/14/08, Kris Schneider <[EMAIL PROTECTED]> wrote: > Can you provide some more det

Re: JSTL XML ---org/apache/xpath/XPathException

2008-07-14 Thread Kris Schneider
Can you provide some more details about how you're using the tag and which app server and version you're using? On Mon, Jul 14, 2008 at 10:49 AM, Rajasekhar <[EMAIL PROTECTED]> wrote: > Hi > > I have used xml tags of jstl in my jsp. but it throwing errors like the > following..How can I get rid o

Re: jstl 1.1.2, xml - how to concat two variables?

2007-05-24 Thread Wadim Kruse
Problem solved another way around: JSP which returns an XSL-Stylesheet. Wadim Kruse wrote: > > Hi, > > I wasn't able to figure out, how to concat two variables (xml-document and > xpath-expression). > The documentation says that "XPathExpression" in > should be a string literal... What is the

Re: jstl x:parse outputs data

2007-04-20 Thread Isabelle Phan
OK many thanks Kris, and help from everyone else on this list also very much appreciated. Kris Schneider wrote: http://issues.apache.org/bugzilla/show_bug.cgi?id=35216 This has been fixed but not yet released. Kris Schneider wrote: For now, try removing session="false" from your page direct

Re: jstl x:parse outputs data

2007-04-20 Thread Kris Schneider
http://issues.apache.org/bugzilla/show_bug.cgi?id=35216 This has been fixed but not yet released. Kris Schneider wrote: For now, try removing session="false" from your page directive. Isabelle Phan wrote: with both Xalan 2.7.0 and 2.5.0 I now get the error WARN: Unhandled exception org.a

Re: jstl x:parse outputs data

2007-04-20 Thread Kris Schneider
For now, try removing session="false" from your page directive. Isabelle Phan wrote: 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: url="http://www.expasy.org/spotlight/index.xml"/>

Re: jstl x:parse outputs data

2007-04-20 Thread Kris Schneider
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 ca

Re: jstl x:parse outputs data

2007-04-20 Thread Bob Arnott
Isabelle Phan wrote: 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/XPathE

Re: jstl x:parse outputs data

2007-04-20 Thread zuber Ali
Hi Isabelle, Can you send code where u r using for output? Regards, zuber On 4/20/07, Isabelle Phan <[EMAIL PROTECTED]> wrote: 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

Re: jstl x:parse outputs data

2007-04-20 Thread Isabelle Phan
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 somew

Re: jstl x:parse outputs data

2007-04-20 Thread Isabelle Phan
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:http://www.expasy.org/spotlight/index.xml"/> 101: 102: escapeXml="false"/> ERROR: Nested in javax.servlet.ServletException: java

Re: jstl x:parse outputs data

2007-04-19 Thread Kris Schneider
You don't need those taglib entries in web.xml. Remove them and use the proper JSTL 1.1 URIs: 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";

Re: jstl x:parse outputs data

2007-04-19 Thread Isabelle Phan
this is the complete declaration in the JSP: 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"

Re: jstl x:parse outputs data

2007-04-19 Thread Kris Schneider
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

Re: jstl x:parse outputs data

2007-04-19 Thread Isabelle Phan
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: etc... I have the vague feeling it's some stupid typo... thanks for your help Isabelle Kri

Re: jstl x:parse outputs data

2007-04-19 Thread Kris Schneider
Are you sure you're properly declaring the x taglib? It almost looks like 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 outputti

Re: JSTL 1.1.2 c:url problem?

2006-11-14 Thread Trenton D. Adams
Yeah, I suppose that's a good reason not to have an escaped output. Thanks for the info. Hassan Schroeder wrote: On 11/14/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: May be if there are languages other than HTML that JSTL works with then, having an unescaped ampersand makes sense if those oth

Re: JSTL 1.1.2 c:url problem?

2006-11-14 Thread Rashmi Rubdi
Yup, that totally makes sense to me. -Rashmi - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tag Libraries Users List Sent: Tuesday, November 14, 2006 8:42:14 AM Subject: Re: JSTL 1.1.2 c:url problem? On 11/14/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:

Re: JSTL 1.1.2 c:url problem?

2006-11-14 Thread Rashmi Rubdi
- Original Message From: Trenton D. Adams [EMAIL PROTECTED] >> Just out of curiosity, is JSTL supposed to do encoding by default? I don't know that. The W3C specs for a link in both HTML and XHTML mention that the ampersand should be escaped as in http://www.site.com?parameter1=abc&pa

Re: JSTL 1.1.2 c:url problem?

2006-11-14 Thread Hassan Schroeder
On 11/14/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: May be if there are languages other than HTML that JSTL works with then, having an unescaped ampersand makes sense if those other languages require an unescaped ampersand. But I don't know if there are other languages at this point. ?! Uh,

Re: JSTL 1.1.2 c:url problem?

2006-11-13 Thread Trenton D. Adams
http://java.sun.com/jsp/jstl/functions"%> -Rashmi - Original Message From: Mikolaj Rydzewski <[EMAIL PROTECTED]> To: Tag Libraries Users List Sent: Monday, November 13, 2006 2:59:21 AM Subject: Re: JSTL 1.1.2 c:url problem? Trenton D. Adams wrote: Is c:url supposed t

Re: JSTL 1.1.2 c:url problem?

2006-11-13 Thread Rashmi Rubdi
ki <[EMAIL PROTECTED]> To: Tag Libraries Users List Sent: Monday, November 13, 2006 2:59:21 AM Subject: Re: JSTL 1.1.2 c:url problem? Trenton D. Adams wrote: > Is c:url supposed to encode your ampersands? Unfortunately not. I have raised such case a few weeks ago: http://mail-archives.apac

Re: JSTL 1.1.2 c:url problem?

2006-11-12 Thread Mikolaj Rydzewski
Trenton D. Adams wrote: Is c:url supposed to encode your ampersands? Unfortunately not. I have raised such case a few weeks ago: http://mail-archives.apache.org/mod_mbox/jakarta-taglibs-user/200609.mbox/[EMAIL PROTECTED] It's not a problem to build your own patched jstl version. -- Mikolaj R

Re: JSTL problem

2006-11-07 Thread Rahul Akolkar
On 11/7/06, Kris Schneider <[EMAIL PROTECTED]> wrote: For the message: According to TLD or attribute directive in tag file, attribute items does not accept any expressions That seems to point to the forEach tag. Make sure the version of JSTL matches the version of JSP and type of web.xml (Serv

Re: JSTL problem

2006-11-07 Thread Kris Schneider
Steve Duran wrote: I suggest you remove the "<<<" if it is actually in your JSP. Might be the result of a CVS/SVN merge. Make sure to clean up any outstanding conflicts. For the message: According to TLD or attribute directive in tag file, attribute items does not accept any expressions

RE: JSTL problem

2006-11-07 Thread Steve Duran
I suggest you remove the "<<<" if it is actually in your JSP. Also, change this: to this: : This may also also be a problem: webLangId${languaje.codi} Try ${ 'webLangId' + languaje.codi } If you're using the 2.4 spec. you can try this: Just suggestions. Steve -

Re: JSTL tag-- how to escape apostrophe

2006-07-12 Thread Kris Schneider
Quoting Chandra Avutu <[EMAIL PROTECTED]>: > I am using JSTL c:out tag to print server messages into HTML pages. However > some of the messages contains apostrophe. Due to special chars the JSTL > c:out > tag was breaking. The following message from server breaks tag. > "Invalid datastore path 'N

RE: JSTL tag-- how to escape apostrophe

2006-07-12 Thread William Ross
At 06:19 PM 7/12/2006, you wrote: How do I filter the input? The messages are coming from server via SOAP adapters. Can you explain more in detail. Thanks for the tip. The adapter is consuming messages from a server, but you don't specify what the server is; never the less, unless you're workin

RE: JSTL tag-- how to escape apostrophe

2006-07-12 Thread Chandra Avutu
How do I filter the input? The messages are coming from server via SOAP adapters. Can you explain more in detail. Thanks for the tip. -Original Message- From: William Ross [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 5:20 PM To: Tag Libraries Users List Subject: Re: JSTL

Re: JSTL tag-- how to escape apostrophe

2006-07-12 Thread William Ross
At 02:04 PM 7/12/2006, you wrote: I am using JSTL c:out tag to print server messages into HTML pages. However some of the messages contains apostrophe. Due to special chars the JSTL c:out tag was breaking. The following message from server breaks tag. "Invalid datastore path 'No_Floppy.flp'." Is

Re: JSTL startup question

2006-05-02 Thread Sébastien Brodeur
Bob Arnott aungate.com> writes: > > Also, don't put any tag library defines in the web.xml... Other than > that, it's always worked for me... > Why don't you include the library defines in the web.xml? All the documentation I read tell me to do it. But when I do, it doesn't work. (The appli

Re: JSTL startup question

2006-04-02 Thread digby
TED] Sent: 29 March 2006 10:56 To: Tag Libraries Users List Subject: Re: JSTL startup question Kevin Passey wrote: [snipped...] Would anybody be so good as to comment. Open standard.jar that came with JSTL1.1.2 zip, browse to the META-INF folder and open c.tld. In there near the top you'll

RE: JSTL startup question

2006-03-29 Thread Kevin Passey
OK Bob - thanks for the advice. I'll probably switch to Netbeans myself. -Original Message- From: Bob Arnott [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 15:30 To: Tag Libraries Users List Subject: Re: JSTL startup question Kevin Passey wrote: > Ha - I'm also us

Re: JSTL startup question

2006-03-29 Thread Bob Arnott
Kevin Passey wrote: Ha - I'm also using Websphere application developer and it does not recognise the version attribute. Maybe that's my problem - it is v5.1.0 Do you use and IDE - and would you recomend one? The ultimate test of any webapp is the ability for it to be edited in a text editor,

RE: JSTL startup question

2006-03-29 Thread Kevin Passey
March 2006 14:16 To: Tag Libraries Users List Subject: Re: JSTL startup question Kevin Passey wrote: > Well I am new to this so bear with me. > > I am using Tomcat5.0.28 and jdk1.5.xx so can I assume that it would be 2.4. > > What's confusing me is that I have written a test p

RE: JSTL startup question

2006-03-29 Thread Kevin Passey
Thanks Bob, I'll give a try. Kevin -Original Message- From: Bob Arnott [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 14:16 To: Tag Libraries Users List Subject: Re: JSTL startup question Kevin Passey wrote: > Well I am new to this so bear with me. > > I am using To

Re: JSTL startup question

2006-03-29 Thread Bob Arnott
Kevin Passey wrote: Well I am new to this so bear with me. I am using Tomcat5.0.28 and jdk1.5.xx so can I assume that it would be 2.4. What's confusing me is that I have written a test page without the /jsp/ and it works - with the /jsp/ it literally prints the variables to the screen. The tld

RE: JSTL startup question

2006-03-29 Thread Kevin Passey
ctory in the distribution has /jsp/ in the url. Thanks Kevin -Original Message- From: Bob Arnott [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 10:56 To: Tag Libraries Users List Subject: Re: JSTL startup question Kevin Passey wrote: [snipped...] > Would anybody be so good as to

Re: JSTL startup question

2006-03-29 Thread Bob Arnott
Kevin Passey wrote: [snipped...] Would anybody be so good as to comment. Open standard.jar that came with JSTL1.1.2 zip, browse to the META-INF folder and open c.tld. In there near the top you'll see a tag http://java.sun.com/jsp/jstl/core that's the URI to use in your JSP pages - <%@ taglib

Re: JSTL JSP compile error

2006-03-20 Thread Rahul Akolkar
On 3/20/06, avilay parekh <[EMAIL PROTECTED]> wrote: > Hi, > > I have been trying to run JSPs with JSTL on tomcat 5.0.28 without any success. > > My setup: > > $CATALINA_ROOT/ > webapps/ > tp/ > login.html > two2.jsp > WEB-INF/ > web.xml > lib/ >

Re: JSTL-EL question (instanceOf)

2006-03-16 Thread Martin Cooper
On 3/16/06, Luca Passani <[EMAIL PROTECTED]> wrote: > > Martin Cooper wrote: > > > > >Not with just EL, but see: > > > > > http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#instanceOf > > > > > > > that seems powerful. Thanks. Is there an example of usage somewhere? > how do I

Re: JSTL-EL question (instanceOf)

2006-03-16 Thread Luca Passani
Martin Cooper wrote: Not with just EL, but see: http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#instanceOf that seems powerful. Thanks. Is there an example of usage somewhere? how do I combine this with ? Luca -

Re: JSTL-EL question (instanceOf)

2006-03-16 Thread Martin Cooper
On 3/16/06, Luca Passani <[EMAIL PROTECTED]> wrote: > > Hi > > here is my problem today. I am dealing with an API that I have not > written and that is not very object oriented. > > I have a list of objects that have no common super class (or better, > they have Object). > In my JSP, which I would

Re: JSTL resource bundle issue

2005-12-23 Thread Rahul Akolkar
On 12/23/05, hong yuan <[EMAIL PROTECTED]> wrote: > I have the following case: > (1) I have an framework application which has > framework resource bundle which sits in a jar file and > also some framework jsps like header / footer etc.. > (2) I have an application which uses the framework jar > fi

Re: JSTL resource bundle issue

2005-12-23 Thread hong yuan
I have the following case: (1) I have an framework application which has framework resource bundle which sits in a jar file and also some framework jsps like header / footer etc.. (2) I have an application which uses the framework jar file and copies the framework jsp files over and has its own r

Re: JSTL resource bundle issue

2005-12-23 Thread Rahul Akolkar
On 12/23/05, hong yuan <[EMAIL PROTECTED]> wrote: > Hi, I am using JSTL resource bundle. It is defined in > web.xml: > > > >javax.servlet.jsp.jstl.fmt.localizationContext > > >package.ApplicationResources > > > > My question is that if I have two or more resource > bundle properti

Re: JSTL and test for file existence

2005-11-25 Thread Luca Passani
Martin Cooper wrote: I don't believe so, and I'd be rather surprised if there was. Remember that there is no guarantee that there even *is* a file system in a webapp environment, so providing access to such a thing in a standard way doesn't really make sense. Of course, you can always create y

Re: JSTL and test for file existence

2005-11-25 Thread Martin Cooper
On 11/25/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Is there a way to test for file existence with JSTL? I don't believe so, and I'd be rather surprised if there was. Remember that there is no guarantee that there even *is* a file system in a webapp environment, so providing acc

Re: jstl doesn't work

2005-10-22 Thread michael Muttai
Libraries Users List Subject: Re: jstl doesn't work Date: Sat, 22 Oct 2005 07:59:30 -0300 Hi Michael, Did you include the necessary taglib directives at the beginning of your JSP? For example, to use the core taglib as you are doing: <[EMAIL PROTECTED] prefix="c" uri=&quo

Re: jstl doesn't work

2005-10-22 Thread Christian Taylor
Hi Michael, Did you include the necessary taglib directives at the beginning of your JSP? For example, to use the core taglib as you are doing: <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> This needs to be included at the top of any JSP using the taglib. If you alr

Re: JSTL c:out method access

2005-10-20 Thread digby
I believe that EL only supports properties (including maps and lists), but not methods. Digby matador wrote: given the following code: 1 2 3 4 5

RE: JSTL Error

2005-09-29 Thread Kurakula, Suneetha (HCF)
I think getFromcity() is missing in the vsr bean. Please check it out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] e.org] On Behalf Of Vijaya S Sent: Thursday, September 29, 2005 3:43 AM To: taglibs-user@jakarta.apache.org Subject: JSTL Error Hello, I am struggli

Re: JSTL TLD confusion

2005-09-07 Thread Rahul Akolkar
On 9/7/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > On 9/7/05, Woodchuck <[EMAIL PROTECTED]> wrote: > > > > which is the 'official' version we should be using? why are there such > > differences between these versions? > > > Because the JSTL spec defines different URLs for JSTL 1.0 and JSTL 1.

Re: JSTL and Java Constants

2005-09-07 Thread Rahul Akolkar
On 8/31/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > On 8/30/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > 2) Another approach that some choose is to provide a "Constants" bean > > that supplies getters for the constants, which is what we ended up > > doing for the RDC taglib. > > > Isn't tha

Re: JSTL TLD confusion

2005-09-07 Thread Martin Cooper
On 9/7/05, Woodchuck <[EMAIL PROTECTED]> wrote: > > hihi all, > > in the Struts (1.2.7) distribution it includes what i thought was > everything you would need to use JSTL. namely, the standard.jar and > jstl.jar (found under the struts/contrib/struts-el/lib folder). > > however, these jars are

Re: JSTL TLD confusion

2005-09-07 Thread TroyGeek
I believe you can only use JSTL 1.1 if you're using Servlet Spec 2.4 (like Tomcat 5) or something like that. thanks! ~ T r o y ~ On 9/7/05, Woodchuck <[EMAIL PROTECTED]> wrote: > > hihi all, > > in the Struts (1.2.7) distribution it includes what i thought was > everything you would need to

Re: JSTL, struts and pagination

2005-09-07 Thread Lorenzo Siclia
On Wednesday 31 August 2005 21:50, Luca Passani wrote: > people, what's the elegant way to do pagination with JSTL? > I am using struts, my Action generates a LinkedList which a JSP page > is supposed to visualize: > > > > > > > I'd like the JSP to recognize long lists and split it

Re: JSTL, struts and pagination

2005-09-01 Thread Martin Cooper
On 8/31/05, Chandramohan Mani <[EMAIL PROTECTED]> wrote: > > pagination is not a part of view... I beg to differ. If you're going to divide the world up into M, V and C, it is certainly part of the view, since it has to do with which part of the model is being presented to the user, and how to

Re: JSTL, struts and pagination

2005-09-01 Thread Chandramohan Mani
pagination is not a part of view... On 9/1/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > people, what's the elegant way to do pagination with JSTL? > I am using struts, my Action generates a LinkedList which a JSP page > is supposed to visualize: > > > http://item.name>}"/> > > > > I'd

RE: JSTL and Java Constants

2005-08-31 Thread Erik Beijnoff
>Please posting the code , I am also interested. > >Thanks >John The big tradeoff is of course the extra fn:xxx('...') that needs to be written in the code. But a big plus is that once direct retrieval of constants from java classes is integrated into the EL, a conversion is simple a matter of sea

Re: JSTL and Java Constants

2005-08-31 Thread jmazzella
Erik, Please posting the code , I am also interested. Thanks John ">"Erik Beijnoff" <[EMAIL PROTECTED]> "Erik Beijnoff" <[EMAIL PROTECTED]> 08/31/2005 02:59 PM Please respond to "Tag Libraries Users List" To: taglibs-user@ja

Re: JSTL and Java Constants

2005-08-31 Thread Erik Beijnoff
>I would like to do something like: > >a) > > This won't work. I could hack it around with a scriptlet and an import >at the top of my JSP, but that seems to me like >violating the separation between View and Control > > >>You may want to see this - > >>http://forums.java.sun.com/thread.

Re: JSTL and Java Constants

2005-08-31 Thread Luca Passani
Martin Cooper wrote: Yes, it will work the same. It works like a charm. You rock. Thanks Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSTL and Java Constants

2005-08-31 Thread Martin Cooper
On 8/31/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > Martin Cooper wrote: > > > > >Done. I think. At least, everything seems to have worked out, so it > should > >be available in the next nightly build of Unstandard. > > > > > will I need to wait tomorrow to download? great. I am eager to try

Re: JSTL and Java Constants

2005-08-31 Thread Luca Passani
Martin Cooper wrote: Done. I think. At least, everything seems to have worked out, so it should be available in the next nightly build of Unstandard. will I need to wait tomorrow to download? great. I am eager to try it. One little doubt: | The constants are defined in an inte

Re: JSTL and Java Constants

2005-08-30 Thread Martin Cooper
On 8/30/05, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > > On 8/30/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > > > > > Martin Cooper wrote: > > > > > > > > > > >and then 'TheConstants' contains a map of all constants in the class, > so >

Re: JSTL and Java Constants

2005-08-30 Thread Martin Cooper
On 8/30/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > > > On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > > > Martin Cooper wrote: > > > > > > > >and then 'TheConstants' contains a map of all constants in the class, > > so you > > >can use, for example: > > > > > >${TheConstants.UR

Re: JSTL and Java Constants

2005-08-30 Thread Rahul Akolkar
On 8/30/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > > > Martin Cooper wrote: > > > > > > > >and then 'TheConstants' contains a map of all constants in the class, so > > you > > >can use, for example: > > > > > >${TheConstants.URL} > > > > >

Re: JSTL and Java Constants

2005-08-30 Thread Martin Cooper
On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > Martin Cooper wrote: > > > > >and then 'TheConstants' contains a map of all constants in the class, so > you > >can use, for example: > > > >${TheConstants.URL} > > > > > > > bang on. That would be cool. I have worked my problem around in m

Re: JSTL and Java Constants

2005-08-30 Thread Luca Passani
Martin Cooper wrote: and then 'TheConstants' contains a map of all constants in the class, so you can use, for example: ${TheConstants.URL} bang on. That would be cool. I have worked my problem around in my application, but your solution would be better, since it would decouple my acti

Re: JSTL and Java Constants

2005-08-30 Thread Martin Cooper
On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > Martin Cooper wrote: > > >Take a look at the 'bind' tag in the Jakarta Taglibs Unstandard tag > library. > >See: > > > > > http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind > > > > > > > interesting. Do you have a

Re: JSTL and Java Constants

2005-08-30 Thread Luca Passani
Martin Cooper wrote: Take a look at the 'bind' tag in the Jakarta Taglibs Unstandard tag library. See: http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind interesting. Do you have an example of how that should be used? Thanks Luca

Re: JSTL and Java Constants

2005-08-30 Thread Martin Cooper
Take a look at the 'bind' tag in the Jakarta Taglibs Unstandard tag library. See: http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind I have a useConstants tag that I've been meaning to donate that exposes all of the constants in a class, but I haven't got around to tha

Re: JSTL and Java Constants

2005-08-30 Thread Sudhaker Raj
And If you can't extend from that class then you can write adapter for that class. Something like this Using in a JSP page: [code] <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> http://Constants.name>}"/> [/code] Where adapter class is [code] package com.utils; import jav

Re: JSTL and Java Constants

2005-08-30 Thread Luca Passani
Sudhaker Raj wrote: You may want to see this - http://forums.java.sun.com/thread.jspa?threadID=508847&messageID=2543490 very smart. A bit overkill for my problem, but very smart... Thanks Luca - To unsubscribe, e-mail:

Re: JSTL and Java Constants

2005-08-30 Thread Sudhaker Raj
You may want to see this - http://forums.java.sun.com/thread.jspa?threadID=508847&messageID=2543490 Cheers, Sudhaker Raj http://thej2ee.com On 8/30/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > > Hi there, here is my big problem today. I am using JSTL in some JSPs. > SInce this is a struts

Re: JSTL and recursion

2005-08-17 Thread Eugeny N Dzhurinsky
On Wed, Aug 17, 2005 at 11:44:51AM +0100, Murray Steele wrote: > You could do something like: > top-level.jsp: > > > > > recurse.jsp: > > > > > ${message.subject} > > > > > > > > I did something similar a while back. It seemed to work. The final > c:set in recurse.jsp m

Re: JSTL and recursion

2005-08-17 Thread Murray Steele
You could do something like: top-level.jsp: recurse.jsp: ${message.subject} I did something similar a while back. It seemed to work. The final c:set in recurse.jsp might be redundant, but you have no way of knowing if the "calling" jsp will want to do something els

RE: JSTL 1.0 problem with Bayern Ch 11 example...

2005-08-04 Thread Givler, Eric
works. Thanks for the quick response yesterday!! -Original Message- From: Martin Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 03, 2005 2:29 PM To: Tag Libraries Users List Subject: Re: JSTL 1.0 problem with Bayern Ch 11 example... On 8/3/05, Givler, Eric <[EMAIL PROTEC

Re: JSTL 1.0 problem with Bayern Ch 11 example...

2005-08-03 Thread Martin Cooper
On 8/3/05, Givler, Eric <[EMAIL PROTECTED]> wrote: > I'm having a heck of a time trying to get the Bayern example from chapter 11 > working, and I'm really not sure why > It looks like there's a bug in your container. I just tried out your code on Resin 3.0.14, and everything works as expect

Re: Jstl function

2005-05-26 Thread ::SammyRulez::
make a tld with a tag like this ceil java.lang.Math double ceil( double) and in your jsp (assuming you have mapped the tld as "/functions") <%@ taglib uri="/functions" prefix="f" %> ... ${f:ceil(your_number_var)} On 5/26/05, Dominguez Valle Carolina <[EMAIL PROTECTED]> wrote: > Hi

Re: jstl and splitting carriage returns

2005-05-26 Thread Digby
Cool. Will give it a try. Thx. Ohring, Peter wrote: I had the same problem last week. For whatever reason (The JSP policy on whitespace) I couldn't set a variable to "\n" but I could create one using the following hack: (Note that on my windows computer temp="one\r\ntwo" so that the 5th char

RE: jstl and splitting carriage returns

2005-05-26 Thread Ohring, Peter
I had the same problem last week. For whatever reason (The JSP policy on whitespace) I couldn't set a variable to "\n" but I could create one using the following hack: (Note that on my windows computer temp="one\r\ntwo" so that the 5th character is the newline character) Then you should be abl

RE: JSTL Recursion possible??

2005-05-06 Thread Gros, Martin
is there a possibility to determine in which "level" this b node appears? -Original Message- From: Rahul P Akolkar To: Tag Libraries Users List Sent: 03.05.2005 03:56 Subject: RE: JSTL Recursion possible?? Given that the c:import is yielding the XML that you sketched o

RE: JSTL Recursion possible??

2005-05-03 Thread Rahul P Akolkar
Original Message- > From: Rahul P Akolkar [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 3. Mai 2005 03:51 > To: Tag Libraries Users List > Subject: Re: JSTL Recursion possible?? > > I, for one, did not understand the question (or what the nesting you show > has to do with &q

RE: JSTL Recursion possible??

2005-05-03 Thread Gros, Martin
Users List Subject: Re: JSTL Recursion possible?? I, for one, did not understand the question (or what the nesting you show has to do with "JSTL recursion"). Can you please try again? Thanks, -Rahul On 5/2/05, Gros, Martin <[EMAIL PROTECTED]> wrote: > JSTL and recursion, is this po

Re: JSTL Recursion possible??

2005-05-02 Thread Rahul P Akolkar
I, for one, did not understand the question (or what the nesting you show has to do with "JSTL recursion"). Can you please try again? Thanks, -Rahul On 5/2/05, Gros, Martin <[EMAIL PROTECTED]> wrote: > JSTL and recursion, is this possible? > > e.g. walk an xml tree with same element names on di

Re: JSTL-EL : Unable to convert string to class

2005-04-29 Thread Rahul Akolkar
Is EL working in other JSPs in the same context? Do you have a servlet 2.4 web.xml? As an aside, its a good idea to use lowercase for the first (and second ;-) letter in a bean or property id/name. -Rahul On 4/29/05, Poornima V Camblay <[EMAIL PROTECTED]> wrote: > Hi all, > > I am a newbie to JS

RE: JSTL Question

2005-04-11 Thread Karr, David
If you want to save the result of an evaluation into another variable, then just use "c:set" to set a variable from a value. > -Original Message- > From: Jack Lauman [mailto:[EMAIL PROTECTED] > Sent: Monday, April 11, 2005 9:32 AM > To: Tag Libraries Users Li

Re: JSTL Question

2005-04-11 Thread Jack Lauman
David: The 'field'(s) are defined in RestaurantBean.java if they're not there nothing happens. cuisine and city field's are exact matches. The name field is user input and is case insensitive and will any partial part of a matching name. What I want to do is to have param.field or ${restauran

RE: JSTL Question

2005-04-11 Thread Karr, David
It's a little hard to tell exactly what you're trying to do here, but it might be helpful to know that '${restaurant.cuisine}' is the same as '${restaurant[param.field]}' if "param.field" is equal to "cuisine". With this, you would need only the single case. This strategy is only useful if you rea

Re: JSTL with Simple Tag API

2005-02-03 Thread Kris Schneider
Would it be possible for you to use javax.servlet.jsp.tagext.TagAdapter to expose your SimpleTag as a Tag? Quoting Bernhard Slominski <[EMAIL PROTECTED]>: > Hi, > > I want to create a set of two taglibs for a Navigation Box with the Simple > Tag API and for my magivation items I need to know th

Re: JSTL - c:if test Question

2005-01-11 Thread Jack Lauman
David: Thanks for your prompt reply. Your sugestion was a good idea, but I found that the following actually worked the way I wanted it to: Thanks, Jack David Schwartz wrote: Try... Add this to your jsp... <%@ taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"; %> Then... Quot

Re: JSTL - c:if test Question

2005-01-11 Thread David Schwartz
Try... Add this to your jsp... <%@ taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"; %> Then... Quoting Jack Lauman <[EMAIL PROTECTED]>: >> I am using the following line of code to test strings for equailty. >> In most cases I'm just trying to compare a city name in an arra

Re: JSTL 1.0 URI vs. JSTL 1.1 URI

2004-11-30 Thread Jason Pincin
Thanks to Pierre and Matthew for the quick response. The correction you provided worked perfectly. I followed up by reading Appendix A, and now have a much greater understanding, not just on how the backwards computability was causing the issues (EL machinery not running due to faulty web.xml)

Re: JSTL 1.0 URI vs. JSTL 1.1 URI

2004-11-30 Thread Pierre Delisle
Jason, Make sure your deployment descriptor (web.xml) is servlet 2.4 based, as follows: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; vers

  1   2   3   4   5   6   7   8   >