You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ja...@suomi24.fi on 2003/10/09 04:39:58 UTC

problem with scope

Hello,

I get an Exception when using the tag: <fmt:setLocale> with the scope attribute.
 Without the scope attribute it works perfectly.  However I would like to
store the locale into the session.  I have this:

<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<fmt:setLocale value="en-US" scope="session"/>
Label: <fmt:message key="label.something"/>

However am getting the following exception, any thoughts or ideas as to why?
I have the default bundle and locale set in web.xml.


1: Illegal scope attribute without var in "fmt:setLocale" tag.

	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:406)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:109)
org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1570)
org.apache.jasper.compiler.Validator.validate(Validator.java:1516)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:259)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


_____________________________________________________________
Yllätä kaveri pilapuhelulla: http://suomi24.mobileghost.fi/pilat/ 
Upeat väritaustakuvat: http://suomi24.mobileghost.fi/tausta/



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org