on 12-08-2014 11:09 AM
I was implementing the default error 500 handling in webstore.
from storefront web.xml
<exception-type>java.lang.Exception</exception-type>
<location>/WEB-INF/pages/error/serverError.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/WEB-INF/views/desktop/pages/error/**serverError.jsp**</location>
</error-page>
and found that it is a static HTML page. No Dynamic content is allowed.
can any one guide me how i can implement internationalisation for the same page.
thanks in advance.
if you are allowed to use jstl you can use this approach. http://stackoverflow.com/questions/4276061/how-to-internationalize-a-java-web-application
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thnx CJ n Vinay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harald,
The page you mentioned is a cms managed page rendered in defaultPageController. but this page is some how different. I already checked the way but it is not working.. Thanks for the input.
thanks Bikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bikram,
You can use JQuery i18 bundles for this static HTML. (jquery.i18n.properties.js)
Sample usage : http://css.dzone.com/articles/internationalization-using
JQuery will pick your default browser language and select appropriate language bundle.
Thx, CJ
Did you look at errorNotFoundPage.jsp
as another errorPage example?
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
...
<spring:theme code="${errorMessageCode}" />
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.