Re: DateTime taglib not working

2002-11-08 Thread Jeff Self
On Thu, 2002-11-07 at 22:07, Glenn Nielsen wrote:
> Jeff Self wrote:
> > I downloaded the DateTime taglib yesterday and set it up for one of my
> > JSP's. But I got the following error message:
> > 
> > org.apache.jasper.JasperException: null(-1,-1) This absolute uri
> > (http://jakarta.apache.org/taglibs/datetime-1.0) cannot be resolved in
> > either web.xml or the jar files deployed with this application
> > 
> > I put this uri in my browser but I received a 404 Not Found. Has the uri
> > changed for the datetime taglib? I couldn't find anything.
> > 
> 
> 
> Which version did you download, the release or the nightly build?
> 
> Glenn
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

I've tried both. But its not necessarily the datetime taglib. I ran the
examples that came with it and they work. So I have to be doing
something wrong. But I don't know what. I put the .tld file in the right
location. I put the .jar file in the right location. The taglib-uri in
my web.xml is identical to the example and its the same as the <%@
taglib in my jsp. So I don't know what I'm doing wrong.

-- 
Jeff Self
Information Technology Analyst
City of Newport News
Personnel Department Suite 200
700 Town Center Drive
Newport News, VA 23606
757-926-1810


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSTL snippet

2002-11-08 Thread Shawn Bayern
On Fri, 8 Nov 2002, Henri Yandell wrote:

> Apologies if this is in one of the books on JSTL, I've only got
> Shawn's and it's not in there afaik.

Heh - the snippet is actually almost identical to Listing 9.1 in "JSTL in
Action."  :-)  (It actually uses a slightly different approach, but the
functionality is the same.)

Shawn


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [jstl] jsp:forward ideas

2002-11-08 Thread Hans Bergsten
Henri Yandell wrote:

I'd like to do the following:


  


Now, obviously this is not going to work until JSP 2.0.

So then there's the next step of:


  "/>


Which due to the order of parsing also fails to work. [This has come up
enough on this list].


Right, JSP action elements are not evaluated in the attribute value
of another JSP action element.


Now, my question is, is there anyway around this?
Apart from the obvious: <% request.getParameter("id") %>.


Develop your own forward and param custom actions and add support for
the EL. Or if you want to use existing code, that's exactly what I did
for my book. You can download the code and use it anyway you like from
here:

  

Hans
--
Hans Bergsten		[EMAIL PROTECTED]
Gefion Software		http://www.gefionsoftware.com
JavaServer Pages	http://TheJSPBook.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: utf8 encoding problem

2002-11-08 Thread Joan Foo
Is chinese the default language of your server?  Have you tryied using 
several non-latin encodings at the same time (not just one)? I also use the 
<%@ page contentType='text/html; charset=UTF-8' %>, and the problem is not 
in the browser. I have used multilingual content (with the four languages I 
mentioned in several projects with no problem at all). This problem only 
occurs when I use the fmt tag library.

Joan


From: Vernon Wu <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Tag Libraries Users List <[EMAIL PROTECTED]>
Subject: Re: utf8 encoding problem
Date: Thu, 07 Nov 2002 08:57:06 -0800


I also use a non-Latin language, Chinese, in my current project. Only time 
I get question mark, if I can recall correctly, is
the key is not set up properly in the property file. In JSP file, I have 
the following encode setting:

<%@ page contentType='text/html; charset=UTF-8' %>

I don't set resource bundle at all, only use the fmt tag from the i18n tag 
set. The i18n portion works correctly with
accept-language as well as after language changed with calling the method 
config.set. I don't compile the code with
i18n encoded argument. I do have one problem with i18n though: unable to 
write/read double byte code in/out DB (I
am told that the problem is in my Java itself).

You might want to try using the fmt tag only and change your browser 
languge setting to test out whether all languges
display properly or not.

Vernon


11/7/2002 8:02:52 AM, "Joan Foo" <[EMAIL PROTECTED]> wrote:

>My property files are ok. The problem in my opinion has to do with the
>encoding. I am not using just latin charsets. I need to have content in
>english, greek, finnish and russian. Maybe i wasn't clear enough in my
>previous posting about the languages. The english gets displayed just 
fine,
>as well as greek (which is the default language of the system). But all
>russian characters are displayed as question marks, an some finnish
>characters are also displayed as question marks.
>As i also mentioned, i have a test tag that uses the same resources and
>displays all four languages fine.
>What languages do you use?
>
>>From: Vernon Wu <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: Tag Libraries Users List <[EMAIL PROTECTED]>
>>Subject: Re: utf8 encoding problem
>>Date: Wed, 06 Nov 2002 08:26:53 -0800
>>
>>
>>I also have i18n on with jstl in my project. I haven't have any display
>>problem. Do you have all correspond property files
>>for all four language?
>>
>>11/6/2002 1:44:26 AM, "Joan Foo" <[EMAIL PROTECTED]> wrote:
>>
>> >Hi,
>> >I am trying to use the jstl i18n tag library to display multilingual
>> >content.
>> >I use UTF-8 encoding on my jsp pages. The problem is that the
>> >only content that gets displayed correctly is the one that
>> >uses the default of the system. The other ones get displayed as a 
series
>>of
>> >question marks.
>> >First I tryied to use a properties file that I converted to
>>Unicode-encoded
>> >with native2ascii. All the content got displayed as question marks.
>> >The next step was to use a ListResourceBundle and I created my java
>>source
>> >files in UTF8. I used the -encoding UTF8 argument in javac.
>> >Only the default language got displayed as it should.
>> >
>> >I am under the impression, that the i18n tag overrides the encoding in
>>jsp
>> >pages with something else (system defult?). Is there a workaround on
>>this?
>> >Why UTF8 is not supported?
>> >
>> >I also wrote a simple test bean that uses the same resource bundle,
>> >and with that I was able to display all four languages I use as they 
are
>> >supposed to (using the ListResourceBundle).
>> >But I really don't want to re-invent the wheel, and would like to use 
the
>> >standard library.
>> >
>> >Thanks in advance.
>> >Joan
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:
>>
>> >For additional commands, e-mail:
>>
>> >
>> >
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>
>--
>To unsubscribe, e-mail:   

>For additional commands, e-mail: 

>
>




--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your messages with MSN 8. Get 2 months F