Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getLocaleResolverInstance No LocaleResolver configured. - error in display table  RSS feed

vinodh Durai
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="" prefix="html"%>
<%@taglib uri="" prefix="bean"%>
<%@taglib uri="" prefix="logic"%>
<%@taglib prefix="display" uri=""%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<body bgcolor="DDDDDD">
<h1> Struts logic:iterate tag</h1>

<html:form action="/searchClient">
<html:text name="ListClientForm" property="keyword" size="30" maxlength="30" />
<input type="submit" name="ClientSearch" value="ClientSearch">

<display:table id="listclient" name="sessionScope.ListClientForm.listclient" requestURI="/" pagesize="10" >
<display:column property="clientId" title="client Id" href="/" sortable="true" />
<display:column property="clientName" title="client Name" sortable="true" />
<display:column property="clientAddress" title="client Address" sortable="true" />
<display:column property="clientSince" title="client Since" sortable="true" />
<display:column property="clientEmail" title="client Email" sortable="true" />
<display:column property="clientPhone" title="client Phone" sortable="true" />


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<p> This is a get client.jsp </p>



import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

* @version 1.0
* @author
public class GetClientAction extends Action

private final static String SUCCESS = "success";
private final static String FAILURE = "failure";
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {

ActionMessages errors = new ActionMessages();
ActionForward forward = new ActionForward(); // return value

try {

// do something here
return mapping.findForward(SUCCESS);
} catch (Exception e) {

// Report the error using the appropriate name and ID.
errors.add("name", new ActionMessage("id"));


// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.

if (!errors.isEmpty()) {
saveErrors(request, errors);

// Forward control to the appropriate 'failure' URI (change name as desired)
// forward = mapping.findForward("failure");

} else {

// Forward control to the appropriate 'success' URI (change name as desired)
// forward = mapping.findForward("success");


// Finish with
return (forward);



<action path="/getClient" type="">
<forward name="success" path="/JSP/GetClient.jsp"/>

error while clicking the value of client id present in display table in listclient.jsp:

[11/05/11 20:20:43:586 IST] 00000021 TableProperti I getLocaleResolverInstance No LocaleResolver configured.

Please let me know where the mistake is. I have included the itext jar file too.
[Thumbnail for displaytable.JPG]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!