You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Falkmar Bodo Hinueber <de...@automedia.de> on 2002/03/26 14:16:08 UTC
Get properties from the struts-config.xml with Struts 1.1 Beta
Hi,
I've a problem with Struts 1.1 Beta, to read properties, which are set
in the struts-config.xml
This code works with an old version from Struts but not with Struts 1.1
Beta.
Can anybody help me?
Here are the sources:
The web.xml :
...
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>mapping</param-name>
<param-value>test.myMapping</param-value>
</init-param>
...
</servlet>
...
The struts-config.xml:
...
<action path="/test"
name="testForm"
type="testAction"
scope="request"
validate="false"
input="/index.jsp">
<set-property property="myProperty" value="This is property
:)" />
<forward name="success" path="/start.do"/>
<forward name="failure" path="/index.jsp"/>
</action>
...
The myMapping.java:
package test.myMapping;
import org.apache.struts.action.ActionMapping;
public class myMapping extends ActionMapping {
protected String myProperty;
public void setMyProperty(String myProperty) {
this.myProperty = myProperty;
}
public String getMyProperty() {
return myProperty;
}
}
The testAction.java:
public final class testAction extends Action {
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
String myProperty=null;
if (mapping instanceof myMapping) // this doesn't work with struts
1.1 what is the cause ?
{
//cast the mapping class into our custom
//mapping class
myMapping mp = (myMapping) mapping;
myProperty=mp.getMyProperty();
}
...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Automatically reloading defination file of Tiles
Posted by Jim Crossley <jc...@ifleet.com>.
Sanjay Choudhary <ja...@yahoo.com> writes:
> Is there a way to configure so that if we make any
> change in application defination files for Tiles, it
> can get automatically be reloaded. Right now I have to
> reboot the web server every time I make changes to it
> and at times its really frustrating.
Doing it automatically could be pretty inefficient (checking the
timestamp of the defs file each time it's accessed, etc), but you can
save yourself from rebooting the server by adding this to your
struts-config:
<action path="/admin/tiles/reload"
type="org.apache.struts.tiles.actions.ReloadDefinitionsAction"/>
Then, whenever you make a change to the defs file, just hit this URL
in your browser:
http://yourhost/yourapp/admin/tiles/reload.do
-- Jim
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Automatically reloading defination file of Tiles
Posted by Sanjay Choudhary <ja...@yahoo.com>.
Is there a way to configure so that if we make any
change in application defination files for Tiles, it
can get automatically be reloaded. Right now I have to
reboot the web server every time I make changes to it
and at times its really frustrating.
-Sanjay
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Cannot find message resources - DESPERATION
Posted by Marius Gabor <ga...@s-m-c.de>.
Hi, Nico!
I've tried and didn't work also... :(((
Marius
Nicolas De Loof wrote:
> Your struts-config:
> <message-resources
> key="org.apache.struts.action.MESSAGE"
> name="ApplicationResources.properties" />
>
> I'm using Struts 1.0.2, so I cannot test it, but i think your message
> ressource bundle should be declared in struts-config with a "parameter"
> attribute without the ".properties" extension:
>
> <message-resources
> key="org.apache.struts.action.MESSAGE"
> parameter="ApplicationResources"/>
>
> Struts_config_1_1.dtd don't have anay "name" attribute for message-ressource
> element. Perhaps you may use struts-config validation at startup.
>
>
> Nico
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Cannot find message resources - DESPERATION
Posted by Nicolas De Loof <ni...@cgey.com>.
Your struts-config:
<message-resources
key="org.apache.struts.action.MESSAGE"
name="ApplicationResources.properties" />
I'm using Struts 1.0.2, so I cannot test it, but i think your message
ressource bundle should be declared in struts-config with a "parameter"
attribute without the ".properties" extension:
<message-resources
key="org.apache.struts.action.MESSAGE"
parameter="ApplicationResources"/>
Struts_config_1_1.dtd don't have anay "name" attribute for message-ressource
element. Perhaps you may use struts-config validation at startup.
Nico
> Hi!
>
> I have the same problem with the messages:
>
> Cannot find message resources under key org.apache.struts.action.MESSAGE
>
> I have already read here about solutions. None worx for me, or I am so
> dumb that I can't get it right. I've attached the web.xml and
> struts-config.xml files.
>
> Please help me!!! 10x in advance!
>
> Marius
>
>
>
>
----------------------------------------------------------------------------
----
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
> <struts-config>
> <message-resources
> key="org.apache.struts.action.MESSAGE"
> name="ApplicationResources.properties"
> />
> </struts-config>
>
>
----------------------------------------------------------------------------
----
> <?xml version="1.0"?>
>
> <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>
> <web-app>
> <display-name>List</display-name>
> <servlet>
> <servlet-name>ListTag</servlet-name>
> <jsp-file>ListTag.jsp</jsp-file>
> <init-param>
> <param-name>application</param-name>
>
<param-value>WEB-INF/ApplicationResources.properties</param-value>
> </init-param>
> <init-param>
> <param-name>config</param-name>
> <param-value>WEB-INF/struts-config.xml</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <welcome-file-list>
> <welcome-file>ListTag.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
>
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Cannot find message resources - DESPERATION
Posted by Marius Gabor <ga...@s-m-c.de>.
Hi!
I have the same problem with the messages:
Cannot find message resources under key org.apache.struts.action.MESSAGE
I have already read here about solutions. None worx for me, or I am so
dumb that I can't get it right. I've attached the web.xml and
struts-config.xml files.
Please help me!!! 10x in advance!
Marius
Cannot find message resources - URGENT
Posted by Sanjay Choudhary <ja...@yahoo.com>.
Hi Gurus,
Help me out with this one pls.
-Sanjay
--- Sanjay Choudhary <ja...@yahoo.com> wrote:
> Yes, I am using xerces.jar
>
> -Sanjay
> --- srinivas <sv...@intensit.de> wrote:
> > do u have the XML parsers in your class path.
> >
> > -----Original Message-----
> > From: Sanjay Choudhary [mailto:java_sc@yahoo.com]
> > Sent: Friday, March 29, 2002 10:50 PM
> > To: Struts Users Mailing List
> > Subject: Cannot find message resources - URGENT
> >
> >
> > Hi,
> > I am getting the following error
> >
> > ServletException in:/delegateIds1.jsp] Cannot find
> > message resources under key
> > org.apache.struts.action.MESSAGE'
> >
> > I tried looking at the archive but none of the
> > solution mentioned in there resolved it.
> >
> > I am using nightly build from 03/27. I am also
> using
> > tiles defination to create my pages.
> >
> > Following is my JSP.
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > Transitional//EN">
> > <%@ page language="java"%>
> > <%@ taglib uri="/WEB-INF/struts-html.tld"
> > prefix="html"%>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld"
> > prefix="bean"%>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld"
> > prefix="logic"%>
> > <%@ taglib uri="/WEB-INF/struts-nested.tld"
> > prefix="nested" %>
> >
> > <!--html:html-->
> > <% System.out.println("Inside delegateIds1.jsp");
> %>
> > <html:form action="/delegatordelegatename.do">
> > <CENTER>
> > <TABLE border="0" cellpadding="0" cellspacing="0">
> > <TBODY>
> > <TR>
> > <TD colspan="12" align="center"
> > class="pageHeader"><bean:message
> > key="title.DELEGATOR_DELEGATE_DETAILS"/></TD>
> > </TR>
> > <TR>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > </TR>
> > <TR class="pageHeader">
> > <TD > </TD>
> > <TD> </TD>
> > <TD align="center"><bean:message
> > key="prompt.LASTNAME"/></TD>
> > <TD></TD>
> > <TD class="pageHeader"
> > align="center"> <bean:message
> > key="prompt.FIRSTNAME"/></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > </TR>
> > <TR class="cellTooLightGrayBGFont9">
> > <TD> </TD>
> > <TD><bean:message
> > key="prompt.DELEGATOR"/> </TD>
> > <TD><html:text size="15"
> > property="delegator.last_Name"/></TD>
> > <TD></TD>
> > <TD><html:text size="15"
> > property="delegator.first_Name"/></TD>
> > <TD> </TD>
> > <TD>
> > <html:link name="FDAForm"
> > property="delegator.name"
> >
> > titleKey="prompt.SEARCHDELEGATORNAME"
> >
> > href="javascript:openWindow('searchPeople.jsp?')">
> > ?
> > </html:link>
> > </TD>
> >
> >
> <TD> </TD>
> > <TD><bean:message
> > key="prompt.TITLE"/> </TD>
> > <TD>
> > <html:select
> > property="delegator.title_Desc">
> > <html:options property="titles"/>
> > </html:select>
> > </TD>
> > <TD> </TD>
> > </TR>
> > <TR class="pageSubHeaderNOFont">
> > <TD> <input type="hidden"
> > name="Page"
> > value=""></TD>
> > <TD><bean:message
> > key="prompt.DELEGATE"/> </TD>
> > <TD><html:text size="15"
> > property="delegate.last_Name"/></TD>
> > <TD></TD>
> > <TD><html:text size="15"
> > property="delegate.first_Name"/></TD>
> > <TD> </TD>
> > <TD>
> > <html:link name="FDAForm"
> > property="delegate.name"
> >
> > titleKey="prompt.SEARCHDELEGATENAME"
> >
> > href="javascript:openWindow('searchPeople.jsp');">
> > ?
> > </html:link>
> > </TD>
> >
> >
>
<TD> </TD>
> > <TD><bean:message key="prompt.TITLE"/>
> > </TD>
> > <TD>
> > <html:select
> > property="delegate.title_Desc">
> > <html:options name="FDAForm"
> > property="titles"/>
> > </html:select>
> > </TD>
> > <TD> </TD>
> > </TR>
> > <TR>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > </TR>
> > <TR class="cellTooLightGrayBG">
> > <TD align="center" colspan="3"><IMG
> > src="images/showDetails.jpg" width="123"
> height="20"
> > border="0"
> > onclick="javascript:Delegate('Go');"></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD colspan="4" align="center"><IMG
> > src="images/save1.jpg" width="70" height="18"
> > border="0"></TD>
> > </TR>
> > <TR>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD></TD>
> > <TD> </TD>
> > <TD> </TD>
> > <TD> </TD>
> > </TR>
> > </TBODY>
> > </TABLE>
> > </CENTER>
> > </html:form>
> >
> > -Sanjay
> >
> >
> >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Cannot find message resources - URGENT
Posted by Sanjay Choudhary <ja...@yahoo.com>.
Yes, I am using xerces.jar
-Sanjay
--- srinivas <sv...@intensit.de> wrote:
> do u have the XML parsers in your class path.
>
> -----Original Message-----
> From: Sanjay Choudhary [mailto:java_sc@yahoo.com]
> Sent: Friday, March 29, 2002 10:50 PM
> To: Struts Users Mailing List
> Subject: Cannot find message resources - URGENT
>
>
> Hi,
> I am getting the following error
>
> ServletException in:/delegateIds1.jsp] Cannot find
> message resources under key
> org.apache.struts.action.MESSAGE'
>
> I tried looking at the archive but none of the
> solution mentioned in there resolved it.
>
> I am using nightly build from 03/27. I am also using
> tiles defination to create my pages.
>
> Following is my JSP.
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN">
> <%@ page language="java"%>
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html"%>
> <%@ taglib uri="/WEB-INF/struts-bean.tld"
> prefix="bean"%>
> <%@ taglib uri="/WEB-INF/struts-logic.tld"
> prefix="logic"%>
> <%@ taglib uri="/WEB-INF/struts-nested.tld"
> prefix="nested" %>
>
> <!--html:html-->
> <% System.out.println("Inside delegateIds1.jsp"); %>
> <html:form action="/delegatordelegatename.do">
> <CENTER>
> <TABLE border="0" cellpadding="0" cellspacing="0">
> <TBODY>
> <TR>
> <TD colspan="12" align="center"
> class="pageHeader"><bean:message
> key="title.DELEGATOR_DELEGATE_DETAILS"/></TD>
> </TR>
> <TR>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> </TR>
> <TR class="pageHeader">
> <TD > </TD>
> <TD> </TD>
> <TD align="center"><bean:message
> key="prompt.LASTNAME"/></TD>
> <TD></TD>
> <TD class="pageHeader"
> align="center"> <bean:message
> key="prompt.FIRSTNAME"/></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> </TR>
> <TR class="cellTooLightGrayBGFont9">
> <TD> </TD>
> <TD><bean:message
> key="prompt.DELEGATOR"/> </TD>
> <TD><html:text size="15"
> property="delegator.last_Name"/></TD>
> <TD></TD>
> <TD><html:text size="15"
> property="delegator.first_Name"/></TD>
> <TD> </TD>
> <TD>
> <html:link name="FDAForm"
> property="delegator.name"
>
> titleKey="prompt.SEARCHDELEGATORNAME"
>
> href="javascript:openWindow('searchPeople.jsp?')">
> ?
> </html:link>
> </TD>
>
> <TD> </TD>
> <TD><bean:message
> key="prompt.TITLE"/> </TD>
> <TD>
> <html:select
> property="delegator.title_Desc">
> <html:options property="titles"/>
> </html:select>
> </TD>
> <TD> </TD>
> </TR>
> <TR class="pageSubHeaderNOFont">
> <TD> <input type="hidden"
> name="Page"
> value=""></TD>
> <TD><bean:message
> key="prompt.DELEGATE"/> </TD>
> <TD><html:text size="15"
> property="delegate.last_Name"/></TD>
> <TD></TD>
> <TD><html:text size="15"
> property="delegate.first_Name"/></TD>
> <TD> </TD>
> <TD>
> <html:link name="FDAForm"
> property="delegate.name"
>
> titleKey="prompt.SEARCHDELEGATENAME"
>
> href="javascript:openWindow('searchPeople.jsp');">
> ?
> </html:link>
> </TD>
>
>
<TD> </TD>
> <TD><bean:message key="prompt.TITLE"/>
> </TD>
> <TD>
> <html:select
> property="delegate.title_Desc">
> <html:options name="FDAForm"
> property="titles"/>
> </html:select>
> </TD>
> <TD> </TD>
> </TR>
> <TR>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> </TR>
> <TR class="cellTooLightGrayBG">
> <TD align="center" colspan="3"><IMG
> src="images/showDetails.jpg" width="123" height="20"
> border="0"
> onclick="javascript:Delegate('Go');"></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD colspan="4" align="center"><IMG
> src="images/save1.jpg" width="70" height="18"
> border="0"></TD>
> </TR>
> <TR>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD></TD>
> <TD> </TD>
> <TD> </TD>
> <TD> </TD>
> </TR>
> </TBODY>
> </TABLE>
> </CENTER>
> </html:form>
>
> -Sanjay
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - send holiday greetings for
> Easter, Passover
> http://greetings.yahoo.com/
>
> --
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Cannot find message resources - URGENT
Posted by srinivas <sv...@intensit.de>.
do u have the XML parsers in your class path.
-----Original Message-----
From: Sanjay Choudhary [mailto:java_sc@yahoo.com]
Sent: Friday, March 29, 2002 10:50 PM
To: Struts Users Mailing List
Subject: Cannot find message resources - URGENT
Hi,
I am getting the following error
ServletException in:/delegateIds1.jsp] Cannot find
message resources under key
org.apache.struts.action.MESSAGE'
I tried looking at the archive but none of the
solution mentioned in there resolved it.
I am using nightly build from 03/27. I am also using
tiles defination to create my pages.
Following is my JSP.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld"
prefix="nested" %>
<!--html:html-->
<% System.out.println("Inside delegateIds1.jsp"); %>
<html:form action="/delegatordelegatename.do">
<CENTER>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TBODY>
<TR>
<TD colspan="12" align="center"
class="pageHeader"><bean:message
key="title.DELEGATOR_DELEGATE_DETAILS"/></TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="pageHeader">
<TD > </TD>
<TD> </TD>
<TD align="center"><bean:message
key="prompt.LASTNAME"/></TD>
<TD></TD>
<TD class="pageHeader"
align="center"> <bean:message
key="prompt.FIRSTNAME"/></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="cellTooLightGrayBGFont9">
<TD> </TD>
<TD><bean:message
key="prompt.DELEGATOR"/> </TD>
<TD><html:text size="15"
property="delegator.last_Name"/></TD>
<TD></TD>
<TD><html:text size="15"
property="delegator.first_Name"/></TD>
<TD> </TD>
<TD>
<html:link name="FDAForm"
property="delegator.name"
titleKey="prompt.SEARCHDELEGATORNAME"
href="javascript:openWindow('searchPeople.jsp?')">
?
</html:link>
</TD>
<TD> </TD>
<TD><bean:message
key="prompt.TITLE"/> </TD>
<TD>
<html:select
property="delegator.title_Desc">
<html:options property="titles"/>
</html:select>
</TD>
<TD> </TD>
</TR>
<TR class="pageSubHeaderNOFont">
<TD> <input type="hidden" name="Page"
value=""></TD>
<TD><bean:message
key="prompt.DELEGATE"/> </TD>
<TD><html:text size="15"
property="delegate.last_Name"/></TD>
<TD></TD>
<TD><html:text size="15"
property="delegate.first_Name"/></TD>
<TD> </TD>
<TD>
<html:link name="FDAForm"
property="delegate.name"
titleKey="prompt.SEARCHDELEGATENAME"
href="javascript:openWindow('searchPeople.jsp');">
?
</html:link>
</TD>
<TD> </TD>
<TD><bean:message key="prompt.TITLE"/>
</TD>
<TD>
<html:select
property="delegate.title_Desc">
<html:options name="FDAForm" property="titles"/>
</html:select>
</TD>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="cellTooLightGrayBG">
<TD align="center" colspan="3"><IMG
src="images/showDetails.jpg" width="123" height="20"
border="0" onclick="javascript:Delegate('Go');"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD colspan="4" align="center"><IMG
src="images/save1.jpg" width="70" height="18"
border="0"></TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
</TBODY>
</TABLE>
</CENTER>
</html:form>
-Sanjay
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Cannot find message resources - URGENT
Posted by Sanjay Choudhary <ja...@yahoo.com>.
Hi,
I am getting the following error
ServletException in:/delegateIds1.jsp] Cannot find
message resources under key
org.apache.struts.action.MESSAGE'
I tried looking at the archive but none of the
solution mentioned in there resolved it.
I am using nightly build from 03/27. I am also using
tiles defination to create my pages.
Following is my JSP.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld"
prefix="nested" %>
<!--html:html-->
<% System.out.println("Inside delegateIds1.jsp"); %>
<html:form action="/delegatordelegatename.do">
<CENTER>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TBODY>
<TR>
<TD colspan="12" align="center"
class="pageHeader"><bean:message
key="title.DELEGATOR_DELEGATE_DETAILS"/></TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="pageHeader">
<TD > </TD>
<TD> </TD>
<TD align="center"><bean:message
key="prompt.LASTNAME"/></TD>
<TD></TD>
<TD class="pageHeader"
align="center"> <bean:message
key="prompt.FIRSTNAME"/></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="cellTooLightGrayBGFont9">
<TD> </TD>
<TD><bean:message
key="prompt.DELEGATOR"/> </TD>
<TD><html:text size="15"
property="delegator.last_Name"/></TD>
<TD></TD>
<TD><html:text size="15"
property="delegator.first_Name"/></TD>
<TD> </TD>
<TD>
<html:link name="FDAForm"
property="delegator.name"
titleKey="prompt.SEARCHDELEGATORNAME"
href="javascript:openWindow('searchPeople.jsp?')">
?
</html:link>
</TD>
<TD> </TD>
<TD><bean:message
key="prompt.TITLE"/> </TD>
<TD>
<html:select
property="delegator.title_Desc">
<html:options property="titles"/>
</html:select>
</TD>
<TD> </TD>
</TR>
<TR class="pageSubHeaderNOFont">
<TD> <input type="hidden" name="Page"
value=""></TD>
<TD><bean:message
key="prompt.DELEGATE"/> </TD>
<TD><html:text size="15"
property="delegate.last_Name"/></TD>
<TD></TD>
<TD><html:text size="15"
property="delegate.first_Name"/></TD>
<TD> </TD>
<TD>
<html:link name="FDAForm"
property="delegate.name"
titleKey="prompt.SEARCHDELEGATENAME"
href="javascript:openWindow('searchPeople.jsp');">
?
</html:link>
</TD>
<TD> </TD>
<TD><bean:message key="prompt.TITLE"/>
</TD>
<TD>
<html:select
property="delegate.title_Desc">
<html:options name="FDAForm" property="titles"/>
</html:select>
</TD>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
<TR class="cellTooLightGrayBG">
<TD align="center" colspan="3"><IMG
src="images/showDetails.jpg" width="123" height="20"
border="0" onclick="javascript:Delegate('Go');"></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD colspan="4" align="center"><IMG
src="images/save1.jpg" width="70" height="18"
border="0"></TD>
</TR>
<TR>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
</TR>
</TBODY>
</TABLE>
</CENTER>
</html:form>
-Sanjay
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>