You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kiratisin, Phattarapol" <PK...@Kinexus.com> on 2002/08/06 15:47:47 UTC

ApplicationResources.properties in Weblogic 6.1

Hi,

I am currently working on a project implementing  Struts  ver 1.1 and
Weblogic 6.1. My problems lies in trying to access my
ApplicationResource.properties file. I am trying to create a simple login
page with a username and password fields. I have added these entries to the
ApplicationResources.properties file in the following manner: 

username=User Name:
password=Password:

I have placed a reference to this file in my struts-config.xml as follows:
 <message-resources
    parameter="ApplicationResources" null="false"/> 

I have placed the ApplicationResources.properties  file under the
WEB-INF/classes directory.

I am trying to access this file through the following tags in my jsp page:

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

<bean:message key="username"/>
<bean:message key="password"/>

When the page loads, the following text is placed where the match to the key
should be: 

"???en_US.username???"
"???en_US.password???"
Could this be a problem with running Weblogic 6.1 with Struts 1.1? Any help
would be appreciated.

Thanks
PK



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ApplicationResources.properties in Weblogic 6.1

Posted by ajTreece <aj...@sun.com>.
What about your web.xml file? I also have the following in mine and it works fine.

     <init-param>
       <param-name>application</param-name>
       <param-value>ApplicationResources</param-value>
     </init-param>


Later, aj


Kiratisin, Phattarapol wrote:

> Hi,
> 
> I am currently working on a project implementing  Struts  ver 1.1 and
> Weblogic 6.1. My problems lies in trying to access my
> ApplicationResource.properties file. I am trying to create a simple login
> page with a username and password fields. I have added these entries to the
> ApplicationResources.properties file in the following manner: 
> 
> username=User Name:
> password=Password:
> 
> I have placed a reference to this file in my struts-config.xml as follows:
>  <message-resources
>     parameter="ApplicationResources" null="false"/> 
> 
> I have placed the ApplicationResources.properties  file under the
> WEB-INF/classes directory.
> 
> I am trying to access this file through the following tags in my jsp page:
> 
> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"" %>
> 
> <bean:message key="username"/>
> <bean:message key="password"/>
> 
> When the page loads, the following text is placed where the match to the key
> should be: 
> 
> "???en_US.username???"
> "???en_US.password???"
> Could this be a problem with running Weblogic 6.1 with Struts 1.1? Any help
> would be appreciated.
> 
> Thanks
> PK
> 
> 
> 
> --
> 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>


RE: ApplicationResources.properties in Weblogic 6.1

Posted by honsali ilia <il...@hps.ma>.
hello
I suggest you , (even I am not sure)
to rename your ApplicationResource.properties with
ApplicationResource_en_US.properties

-----Message d'origine-----
De : Kiratisin, Phattarapol [mailto:PKiratisin@Kinexus.com]
Envoyé : mardi 6 août 2002 13:48
À : 'struts-user@jakarta.apache.org'
Objet : ApplicationResources.properties in Weblogic 6.1


Hi,

I am currently working on a project implementing  Struts  ver 1.1 and
Weblogic 6.1. My problems lies in trying to access my
ApplicationResource.properties file. I am trying to create a simple login
page with a username and password fields. I have added these entries to the
ApplicationResources.properties file in the following manner:

username=User Name:
password=Password:

I have placed a reference to this file in my struts-config.xml as follows:
 <message-resources
    parameter="ApplicationResources" null="false"/>

I have placed the ApplicationResources.properties  file under the
WEB-INF/classes directory.

I am trying to access this file through the following tags in my jsp page:

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

<bean:message key="username"/>
<bean:message key="password"/>

When the page loads, the following text is placed where the match to the key
should be:

"???en_US.username???"
"???en_US.password???"
Could this be a problem with running Weblogic 6.1 with Struts 1.1? Any help
would be appreciated.

Thanks
PK



--
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>