On Wed, 21 Mar 2001, Yuan Jun wrote:

> 
> 
> > On Tue, 20 Mar 2001, Yuan Jun wrote:
> >
> > > i download jakarta-struts-1.0-b1 today and found next in
> > registration.jsp
> > >
> > > <html:form action="/saveRegistration">
> > > <html:hidden property="action"/>
> > > <table border="0" width="100%">
> > >
> > > should it be:
> > > <html:form action="/saveRegistration.do">
> > > or i've missed something?
> > >
> >
> > Although the latter still works, the <html:form> tag has been made smart
> > enough to figure out how an action path is mapped to the controller
> > servlet.  The former will work even if you change from path mapping to
> > extension mapping (or vice versa), for example.
> >
> 
> i see. but when i depoyed struts-example to orion 1.4.5, it did work. i have
> to modify jsp files adding .do to html:form to make it work, is it a bug of
> orion?
> 

It might be.

In order for this to work, Struts has to be able to parse the web
application deployment descriptor (/WEB-INF/web.xml).  To do this, Struts
calls:

        InputStream is =
          getServletContext().getResourceAsStream("/WEB-INF/web.xml");

At various times Orion has returned null from this call, because the
developers incorrectly believed that a servlet should not be able to
access resources in the /WEB-INF directory.  This has gone back and forth
in various Orion versions.

Are there any interesting log messages during the startup of the
controller servlet?

> John

Craig


Reply via email to