RE: UTF8 and Chinese

2004-05-17 Thread Kransen, J.
Anyone tell me if I'm wrong, but I doubt if UTF-8 covers Chinese. As I see it, it only contains 8 bits per character, instead of ASCII's 7 bits, and for that reason I assume it only covers 2* the number of chars. Maybe you can try UTF-16 instead? Jeroen > -Oorspronkelijk bericht- > Van:

RE: Struts 1.1 & XHTML [html:form]

2004-05-17 Thread Kransen, J.
That's a known issue and is solved in 1.2 > -Oorspronkelijk bericht- > Van: Le Goff, Yoann [mailto:[EMAIL PROTECTED] > Verzonden: maandag 17 mei 2004 11:55 > Aan: 'Struts Users Mailing List' > Onderwerp: Struts 1.1 & XHTML [html:form] > > Hi, > > My render a form with a name="toto" attr

[very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Kransen, J.
Hello, I generate an XML file from within a JSP in Tomcat. Especially after 16384 bytes the contents are really interesting. Unfortunately, Tomcat disagrees and truncates it. It can't be coincidence that this is 16k precisely, so I hoped to find a configuration item set to 16k (in fact I hoped not

RE: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Kransen, J.
> <%@ page buffer="64kb" autoFlush="false" > contentType="text/xml; charset=UTF-8" %> Hurray, that was the solution :-D Thanks, Jacob! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: R: Sharing what I've learned: locale switching

2004-05-17 Thread Kransen, J.
If I understand you right, you want data (in this case the locale) to be stored at a scope higher than session, because it involves more webapps, but less than "application", because it is user (session) specific. Far as I know, there is no such scope defined. Maybe you can simulate this behaviour

RE: Setting the locale toa different value thanthe Browser Locale []

2004-05-19 Thread Kransen, J.
For a default language, make sure that there's a file ApplicationResources.properties without a "_en", "_fr" etc suffix. That language will be used if there's no match for the preferred language. If you want German speakers to see English, and still have the rest (default) see French, you can copy

RE: Links relative to jsp not action in Opera

2004-05-26 Thread Kransen, J.
Do you have a tag inside your ? > -Oorspronkelijk bericht- > Van: Mick Wever [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 26 mei 2004 13:17 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: Links relative to jsp not action in Opera > > On Wed, 26 May 2004 07:14:52 -0400, James Mitchell wrote

RE: Links relative to jsp not action in Opera

2004-05-26 Thread Kransen, J.
bericht- > Van: Mick Wever [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 26 mei 2004 13:43 > Aan: [EMAIL PROTECTED] > Onderwerp: RE: Links relative to jsp not action in Opera > > On Wed, 26 May 2004 13:28:23 +0200, Kransen, J. wrote: > > > Do you have a tag inside

RE: Links relative to jsp not action in Opera

2004-05-26 Thread Kransen, J.
> [The other problem here is in a cluster the server must be the virtual > host fronting the cluster not the localhost, although this can be solved > it's just an extra pain.] According to http://jakarta.apache.org/struts/userGuide/struts-html.html#base you can use two attributes from which one i

RE: Links relative to jsp not action in Opera

2004-05-26 Thread Kransen, J.
> I'm not sure on how to use the htmml:base tag in the opposite manner, ie > the href to be that of the struts action's path not the jsp's path? Are you sure you want to have the action path in the base href instead of the jsp path? I would think that as you write the relative links inside the jsp

[OT] How to do Xalan parsing of XML file retrieved with HTTP?

2004-07-01 Thread Kransen, J.
Hello, I have a .jsp that outputs a XML file. I have another .jsp in which I want to parse the XML file using an XSL file. So in the latter .jsp I want to do something like this: <% String xslFile = getServletContext().getRealPath("/xml/risc2cvs.xsl"); TransformerFactory tFactory = TransformerF

RE: Internationalization

2004-04-13 Thread Kransen, J.
Yes, it's as simple as that. You only add ApplicationResources_??.properties files and leave one (default) ApplicationResources.properties file (in your case English). You need to set in the JSP's, and I think also in the struts-config.xml, but I'm not totally sure about that one. Regards,

RE: I18N problems

2004-04-21 Thread Kransen, J.
This sounds familiar and may relate to a problem I used to have with showing Bulgarian (Cyrillic). It's too long ago to remember precise details, but here are some tips: Look at the text file encoding of your properties file and of the JSP file, this should be UTF-8, you can set this with IDEs su

RE: Special Characters (german Umlaute)

2004-05-04 Thread Kransen, J.
This is something I've been wondering: is it absolutely necessary to convert text files using this tool? I use UTF-8 encoding for the ApplicationResources.properties_?? files, I indicate that UTF-8 is the encoding of my web pages, with the tag and it works just fine. Is this just coincidence an