RE: Tag Object Model?

2004-04-26 Thread Martin van Dijken
The Javadocs of the Servlet spec (javax.servlet.jsp.tagext) give a pretty good idea of the lifecycle of the different tag classes. However, you might indeed be best of reading a book first. Martin -Oorspronkelijk bericht- Van: Derek [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 27 april 20

Re: Tag Object Model?

2004-04-26 Thread Derek
Ok, I would highly recommend O'Reilly's Java Server Pages -- it's half JSP and half how to write custom JSPs. It goes through the life-cycle of the various custom tag implementations. Derek On Apr 26, 2004, at 8:09 PM, Steven J. Owens wrote: --- Glenn Nielsen <[EMAIL PROTECTED]> wrote: It sou

Re: Tag Object Model?

2004-04-26 Thread Steven J. Owens
> --- Glenn Nielsen <[EMAIL PROTECTED]> wrote: > > It sounds like you are referring to how the Java source code > > for a JSP is generated. This is based on the JSP spec and > > the vendors implementation of it. If you are using Tomcat Somewhat; while I'm most particularly interested in the t

Re: Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Andreas Schildbach
Kris Schneider wrote: You may also need to override HttpServletRequestWrapper.getHeaders so that it returns a non-empty Enumeration for the Accept-Language header. In other words, always make JSTL think that the client has supplied the header. JSTL should then use ServletRequest.getLocales for the

Re: I18N and compound messages

2004-04-26 Thread Kris Schneider
Try: Quoting "J. L." <[EMAIL PROTECTED]>: > Hi, > > I went through the java i18n tutorial, and I found > some informations about compound messages : > http://java.sun.com/docs/books/tutorial/i18n/format/messageFormat.html > > The problem is that I did not succed to use compound > messages wit

Re: Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Kris Schneider
You may also need to override HttpServletRequestWrapper.getHeaders so that it returns a non-empty Enumeration for the Accept-Language header. In other words, always make JSTL think that the client has supplied the header. JSTL should then use ServletRequest.getLocales for the list of preferred loca

Re: xmlrpc and parse

2004-04-26 Thread Kris Schneider
One problem is probably the use of instead of in: .. .. I guess it's a bit verbose, but here's an example page: <%@ page contentType="text/plain" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> <%@ taglib prefix="io" uri="http://jakarta.apache.org/taglibs/io-1.0"; %> <%@

Re: Tag Object Model?

2004-04-26 Thread Derek
Of course, there are JavaDocs available for JSP in Tomcat: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jspapi/index.html That's at least a good starting point -- especially from a Java servlet programmer's perspective. There really isn't a DOM for JSP that I know of. Each of the browsers im

Doesn't LocalizationContext use HttpServletRequest.getLocale() to get the user selected language?

2004-04-26 Thread Andreas Schildbach
Hello everyone, for the i18n of my web application, I have written a servlet filter that implements the following model: - if the user or guest has selected a language from the navigation menu, use it (it is stored in the users HttpSession). - else if the user is logged in use his/her language

Re: Tag Object Model?

2004-04-26 Thread Glenn Nielsen
It sounds like you are referring to how the Java source code for a JSP is generated. This is based on the JSP spec and the vendors implementation of it. If you are using Tomcat you might want to ask on the tomcat-user or tomcat-dev lists if such a thing exists for Jasper which implements JSP pages

I18N and compound messages

2004-04-26 Thread J. L.
Hi, I went through the java i18n tutorial, and I found some informations about compound messages : http://java.sun.com/docs/books/tutorial/i18n/format/messageFormat.html The problem is that I did not succed to use compound messages with JSTL :( My JSP : ...] <%@ taglib prefix="fmt" uri="http://j