Re: question

2003-09-17 Thread Kris Schneider
The next time you hit the page it works though, right? If you're tracking sessions via cookies, subsequent responses won't need to do URL rewriting. It actually looks like it's a server bug. Hitting http://www.sun.com/im/sun_logo.gif;jsessionid=foo works just fine (SunONE WebServer 6.0), whereas

Re:

2003-09-17 Thread Billy Bacon
Yep, all my JSPs are in the same directory. // didn't work // did the trick. Dunno... On 9/17/03 1:14 PM, "Kris Schneider" <[EMAIL PROTECTED]> wrote: > Okay, that's good, but I use page-relative paths successfully with > all the time. Are you sure the page doing the import is in the same

question

2003-09-17 Thread Michael Duffy
I'm following the recommendations laid out by Shawn Bayern in "JSTL In Action", but I've run into a snag. On page 136, Shawn recommends using the tag for referring to a directory named images in a Web application:

Re:

2003-09-17 Thread Kris Schneider
Okay, that's good, but I use page-relative paths successfully with all the time. Are you sure the page doing the import is in the same directory as the page being imported? Quoting Billy Bacon <[EMAIL PROTECTED]>: > Awesome. That worked! > > Thanks Kris! > > - Billy - > > On 9/17/03 12:05 PM,

using with scoped variables

2003-09-17 Thread Christopher Stead
Using nested tags, I am not able to access the value of a scoped variable set by the parent tag: PageContext.PAGE_SCOPE) %>" default="test"/> I've looked at javax.servlet.jsp.jstl.core.TagLoopSupport and the source code is definitely setting variab

Re: Use JSTL to output a path in the containor

2003-09-17 Thread Kris Schneider
Seems like this should work: " ...> Please give an example of what you've tried with and what the resulting output was. Quoting Vernon Smith <[EMAIL PROTECTED]>: > > I need to out put a path inside of the containor. The path is > > ((Member)request.getSession().getAttribute("member")).getP

Re:

2003-09-17 Thread Billy Bacon
Awesome. That worked! Thanks Kris! - Billy - On 9/17/03 12:05 PM, "Kris Schneider" <[EMAIL PROTECTED]> wrote: > Have you tried a context-relative path (starts with "/") to the page? > > Quoting Billy Bacon <[EMAIL PROTECTED]>: > >> It's a scoped variable. But I think the problem is elsewhere

Use JSTL to output a path in the containor

2003-09-17 Thread Vernon Smith
I need to out put a path inside of the containor. The path is " align="middle"> in the script form. If I use the c:out tag, the JSP page path is attached to the front of the path. I also have tried the c:url and have the same result. How I can get the path right using a JSTL tag? Thanks,

Re:

2003-09-17 Thread Kris Schneider
Have you tried a context-relative path (starts with "/") to the page? Quoting Billy Bacon <[EMAIL PROTECTED]>: > It's a scoped variable. But I think the problem is elsewhere because even > this doesn't work for me and no exception is thrown... > > > > Any ideas? > > On 9/17/03 11:34 AM, "Kris

Re:

2003-09-17 Thread Billy Bacon
It's a scoped variable. But I think the problem is elsewhere because even this doesn't work for me and no exception is thrown... Any ideas? On 9/17/03 11:34 AM, "Kris Schneider" <[EMAIL PROTECTED]> wrote: > Is "xyz" only a scripting variable or is it also a scoped variable? > > Quoting Billy

Re:

2003-09-17 Thread Kris Schneider
Is "xyz" only a scripting variable or is it also a scoped variable? Quoting Billy Bacon <[EMAIL PROTECTED]>: > Yes, I am importing the core library, I have plenty of other tags > within my jsp and they work perfectly that's why it confuses me that's it > not working. Seems like a pretty simple t

Re:

2003-09-17 Thread Billy Bacon
I tried catching any exceptions and nothing was printed to the screen :-/ On 9/17/03 10:41 AM, "Rick Ross" <[EMAIL PROTECTED]> wrote: > Also, you might wanna do this to see if an error occurred: > > > > > > > > > > Billy Bacon wrote: > >> I've looked through the archives and the su

Re:

2003-09-17 Thread Billy Bacon
Yes, I am importing the core library, I have plenty of other tags within my jsp and they work perfectly that's why it confuses me that's it not working. Seems like a pretty simple tag to use. Before trying to convert this to JSTL I had tag (from Struts) and a tag and things worked fine. But no

Re: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Serge Knystautas
Adam, JSP 2.0 introduces the notion of functions within EL, and in step with that release, JSTL 1.1 will include some standard functions including size. There are early releases like Tomcat 5.0 and Resin 3.0 that give you some features of JSP 2.0, although I haven't tried either. Hopefully th

Re:

2003-09-17 Thread Rick Ross
Also, you might wanna do this to see if an error occurred: Billy Bacon wrote: I've looked through the archives and the suggested alternative for a dynamic reference is using the . This is not working in my JSP. The tag is including nothing in my page. I've even tried to give it a sta

Re:

2003-09-17 Thread Rick Ross
Make sure that you are clear on the differences between c:import jsp:include and @include they are all different and in my case the fact that the imported page has no knowledge of my context hosed me. R Billy Bacon wrote: I've looked through the archives and the suggested alternative for a dy

RE: import>

2003-09-17 Thread MEIN, Christopher, FM
Have you imported the core tag library at the top of your page? I always forget to do this and wonder why functionlaity is not working. Chris -Original Message- From: Billy Bacon [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 17:22 To: Tag Libraries Users List Subject: I've looked

taglibs-user@jakarta.apache.org

2003-09-17 Thread Billy Bacon
I've looked through the archives and the suggested alternative for a dynamic reference is using the . This is not working in my JSP. The tag is including nothing in my page. I've even tried to give it a static reference to the jsp and still nothing. Does anyone know what's wrong? - Billy - ---

Re: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Adam Hardy
Well, since we're getting into terrible hacks territory, how about: :) On 09/17/2003 02:05 PM Martin van Dijken wrote: Oops, Guess I spoke a little too fast there. The count does not, like I thought, expose the list size, but the count of how many iterations have passed. Sorry, no go, M

Re: How Can I Write To The Servlet Log Using JSTL?

2003-09-17 Thread Michael Duffy
Thank you, Serge, I'll look elsewhere. I just wanted to make sure that I wasn't overlooking something out of ignorance. - MOD --- Serge Knystautas <[EMAIL PROTECTED]> wrote: > Michael Duffy wrote: > > What's the proper idiom to write to the Web app > log > > from a JSP using JSTL? Is it possib

RE: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Martin van Dijken
Oops, Guess I spoke a little too fast there. The count does not, like I thought, expose the list size, but the count of how many iterations have passed. Sorry, no go, Martin > -Original Message- > From: Martin van Dijken > Sent: woensdag 17 september 2003 14:02 > To: Tag Libraries Use

RE: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Martin van Dijken
Hey guys, I think this can be accomplished although not directly. I must admit it's a terrible hack, so decide for yourself if you want to use this. I don't exactly have a test situation, so I can't really test this, but try: This only shows the count if there is at least one item

RE: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Eric . Lewis
Hi guys I think this has been discussed in this list about 3.7 million times, so check out the archives... The short answer is: You can't. Best regards, Eric -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 17. September 2003 13:39 To: Tag Libraries Users Lis

Re: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Henri Yandell
This has been on the list before I think. The recommended solution appears to be to replace your List class with a ListBean which contains a getSize method. Would probably be useful if Taglib project could have these classes available for download. Anyone implemented these and feel like offering t

Re: How to get the size of a java.util.List object in EL?

2003-09-17 Thread Adam Hardy
Hi Billy, I don't know about this one. Maybe someone more guru-like will step up with an answer 8-) I'm not quite sure why EL doesn't like this but I think it's because the List class is not a javabean - presumably EL looks for getSize() rather than the actual size(), but that doesn't explain

Internationalization

2003-09-17 Thread Martin van Dijken
Hey gang, I've been busy doing I18N for our site using the JSTL internationalisation features. What I miss there and could really use is a tag-alternative for the ChoiceFormat java-class. If need be I could of course create one of my own, but if there is one already I'd really rather use it. Do