>Hello,
>
>I have created a "timeclock" sub-app declaration in web.xml like so:
>
><servlet>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>config/timeclock</param-name>
> <param-value>/WEB-INF/timeclock-config.xml</param-value>
> </init-param>
>
>
>inside timeclock-config.xml I have only one tag declared:
>
><struts-config>
> <message-resources key="timeclockproperties" parameter="resources.timeclock"/>
></struts-config>
>
>now on a seperate jsp, I want to access these properties using the bean tag.
>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><bean:message bundle="timeclockproperties" key="timeclock.title"/>
>
>but I get this error:
>
>org.apache.jasper.JasperException: Cannot find message resources under key timeclockproperties

Okay, I solved my problem,
it seems that any attribute stored in the servlet context, that has been configured under a sub-app config file, has it's key appended with "/subappname".

I didn't see this anywhere in the docs, or in the programming struts oreilly book.
Is this the default behavior for naming context attributes configured from a sub-app?
Is this going to change when 1.1 hits release?



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to