I got the URL loaded finally. I need to create the directory 'admin'
myself before calling .../admin/reload.do . Oops! Thanks Maya.

--
Kan LEUNG, M K
email: [EMAIL PROTECTED]
Digital Empires Company Limited


----- Original Message -----
From: "Maya Muchnik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 9:44 PM
Subject: Re: auto reload of message resource and URL-rewrite


> Hi,
> I am sorry for my "stupidity". Need to read more careful email, and
what
> people ask. I have tried myself the following link:
> "http://localhost:8080/struts-example/admin/reload.do" and it works. I
can
> see messages about updating of ActionFormBean, ActionForward,...
properties
> on a command line (where I have started Tomcat)  and in browser window
the
> message - "OK".
> Maya
>
> Maya Muchnik wrote:
>
> > Kan is correct. I did have admin subdir under struts-example either.
> >
> > "Kan Leung, MK" wrote:
> >
> > > ----- Original Message -----
> > > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, February 22, 2001 2:06 AM
> > > Subject: Re: auto reload of message resource and URL-rewrite
> > >
> > > > At the bottom of the struts-config.xml file for the example
> > > application, you
> > > > will see an action definition:
> > > >
> > > >     <action path="/admin/reload"
> > > >         type="org.apache.struts.actions.ReloadAction"/>
> > > >
> > > > which means you can send a request to the following URL
(assuming the
> > > normal
> > > > *.do mapping):
> > > >
> > > >     http://localhost:8080/struts-example/admin/reload.do
> > > >
> > > > and the Struts controller servlet will reload all of the
configuration
> > > files
> > > > and message resources (but not the Java classes -- you have to
ask
> > > your
> > > > servlet container to reload the app in order to accomplish
that).
> > > >
> > > > You can use any of these standard actions in your own
applications as
> > > well.
> > >
> > > Apache "page not found" error is experienced. I did include a
handler
> > > for *.do in tomcat-apache.conf file! I'm still unable to reload
resource
> > > file in runtime.
> > >
> > > ===CUT===
> > > Not Found
> > >
> > > The requested URL /struts-example/admin/reload.do was not found on
this
> > > server.
> > >
> > > Apache/1.3.12 Server at localhost Port 80
> > > ===CUT===
> > >
> > > --
> > > Kan LEUNG, M K
> > > email: [EMAIL PROTECTED]
> > > Digital Empires Company Limited
>


Reply via email to