Struts Internationalization
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   padma_murugan
Posted On:   Tuesday, February 10, 2004 04:04 AM

I created two files ApplicationResources.properties with the content index.title=Struts Tutorial and ApplicationResources_de.properties with the content index.title=Struts Einfuhrung And I worked the following example in struts using tomcat4.1. <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> BookView    More>>

I created two files


ApplicationResources.properties with the content index.title=Struts Tutorial


and ApplicationResources_de.properties with the content index.title=Struts Einfuhrung


And I worked the following example in struts using tomcat4.1.


<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

















BookView









It gives me the following error in browser
org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE


and the error in tomcat window as follows:
org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnN
ull=true


Could anyone pls explain how to correct this error?


And pls tell me how to get all the necessary jar files to work with strut.i've got zip file jakarta-struts-1.1 zip file.But i could not find struts.tld and few jar files as mentioned in tutorial.    <<Less

Re: Struts Internationalization

Posted By:   Sanskriti_P  
Posted On:   Tuesday, February 10, 2004 04:30 AM

u must keep struts-bean.tld,struts-html.tld & struts-logic.tld files in /WEB-INF directory.

u can find those files in jakarta-struts-1.1 zip .

if this is done then there should not be any problem
and struts.jar file should be kept in /WEB-INF/lib directory

better if u go through onjava.com for struts tutorial
About | Sitemap | Contact