> > > John Sessler wrote: > > > > Hello All, > > > > I am experiencing the same problem described by someone else in Oct. > > however, the solutions suggested do not work for me. When compiling a page > > with the fmt:setLocale tag the compiler reports the following error > > message: > > > > error:null(-1,-1) <h3>jsp.error.tlv.invalid.page</h3><p>8: Illegal scope > > attribute without var in "fmt:setLocale" tag. > > > Hummm... This error says that a dangling "scope" is not allowed for > "setLocale" (i.e. having "scope" without "var"). However, I just checked the > code for standard-1.0.2 and it *is* allowed (as the spec says). > > Could you try the following simple JSP and tell us if you get the error > or not. > > <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> > <fmt:setLocale value="fr" scope="request"/> > It works! >
I created a jsp page, called test.jsp, with only the two lines that you describe above. I get the NullPointerException that I mentioned in my previous post. Here it is: 2002-12-06 10:04:20 - ERROR-el archivo '\test.jsp' ha generado la excepcion general siguiente: java.lang.NullPointerException error:null Warning #: 909 : source E:\Java\JavaProjects\foski\classes\Generated Source\.jsp\foski\test2ejspJSP.java does not define any classes or interfaces This is the same exception that my own code produces when using uri="http://java.sun.com/jstl/fmt" in the taglib directive. As stated previously, my code runs in spite of the NullPointerException but messages are not internationalized. Its seems that the resource bundle is not found. The resource bundle is found by a Struts bean:message tag on the same page. Thanks again for whatever help offered, John -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
