sorry, my last post was a bit cryptic-- it was in response to Ralf's second
question about multiple sub-apps, not his first one about html:link-- my
bad!
-----Original Message-----
From: Taylor, Jason
Sent: Sunday, September 22, 2002 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: I do not understand html:link with action
I found an example with Camino 2.0.3, a struts IDE. My stuff is
unfortunately proprietary so I can't share it, but it's real simple to do.
Basically, when you set up your web.xml, just add more "config/xxxx"
init-params for your ActionServlet. Like this:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/random</param-name>
<param-value>/WEB-INF/struts-config-random.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
That's really it-- be sure to have a message resources file (like this:
<message-resources parameter="com.yourdomain.random.ApplicationResources">)
specified in your struts-config files, so you can take advantage of the
per-sub-application properties if you need it. You can always just specify
the same file for different applications if they happen to share *all* their
properties. Otherwise, each struts-config file should have their own
message-resources. Make sense?
-JT
-----Original Message-----
From: Ralf E. Stranzenbach [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 1:37 PM
To: Struts Users Mailing List
Subject: I do not understand html:link with action
Hi,
i tried to use the "html:link" tag with some action parameter within my
navigation screen. But i can't find the right notation to reference one of
my ActionMappings from the struts-config.xml. I've read the documentation
but i have no idea what's wrong with it.
Please enlight me!
I have a second question - is there some good example on how to use multiple
sub-applications with struts-1.1 ?
Many thanks,
Ralf E. Stranzenbach
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>