You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andrew Kirkland <ki...@synergy-fs.com> on 2001/11/02 13:11:43 UTC

struts-example.war - url correction

Slight correction 

When i try to submit any form in the
example, my browser is redirected to logon.do;jsessionid=454333 or whatever
number.

Im my haste and frustration I got it wrong, sorry guys :) 

Andy

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


Re: struts / tiles / ApplicationResources problem

Posted by peter <pe...@btinternet.com>.
Thanks for your quick reply.  I already have the the setting in my web.xml
file for Application Resources, which is placed directly under the classes
directory.  The Application Resources worked fine before I sdded the tiles
stuff, like defining my action servlet of class ActionServlet in web.xml, as
opposed to ActionComponentServlet.

Thanks


Peter



> Make sure that there is a setting in your web.xml for the Application
> Resources.
>
>     <init-param>
>       <param-name>application</param-name>
>       <param-value>ApplicationResources</param-value>
>     </init-param>
>
> ...
>
> and that the ApplicationResources.properties file is on the
> application's classpath. Anywhere under classes should do.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel +1 716 737-3463
> -- http://www.husted.com/struts/
>
>
> peter wrote:
> >
> > Hi
> >
> > Just installed tiles, which I'm running with struts1.0, and I get the
> > following error when I try to load my .jsp file:
> >
> > A Servlet Exception Has Occurred Exception Report:
> > javax.servlet.ServletException: Cannot find message resources under key
> > org.apache.struts.action.MESSAGE
> >
> >  at
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> > Source)
> >  at org.apache.jsp.fHome$jsp._jspService(fHome$jsp.java:188)
> > ..............................................
> >
> > I think the problem might be something to do with not being able to read
my
> > ApplicationResources.properties, but I cannot find a way to solve this
> > problem yet.  If I remove all tags which reference the
ApplicationResources
> > the .jsp file loads ok.
> >
> > I've followed the instructions according to the installation file at:
> >
> > http://www.lifl.fr/~dumoulin/tiles/doc/installation.html
> >
> > and I've place the .tld, and .jar files in the relevant directories, and
> > modified my web.xml file with:
> >
> > <servlet>
> >     <servlet-name>action</servlet-name>
> >
> >
<servlet-class>org.apache.struts.tiles.ActionComponentsServlet</servlet-clas
> > s
> >     <init-param>
> >       <param-name>definitions-config</param-name>
> >       <param-value>/WEB-INF/tilesInstances.xml</param-value>
> >     </init-param>
> > ...
> >
> > Have I missed something out, or does someone know what the problem might
be?
> >
> > Thanks
> >
> > Peter
> >
> > --
> > 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>
>


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


Re: struts / tiles / ApplicationResources problem

Posted by Ted Husted <hu...@apache.org>.
Make sure that there is a setting in your web.xml for the Application
Resources. 

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

...

and that the ApplicationResources.properties file is on the
application's classpath. Anywhere under classes should do.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


peter wrote:
> 
> Hi
> 
> Just installed tiles, which I'm running with struts1.0, and I get the
> following error when I try to load my .jsp file:
> 
> A Servlet Exception Has Occurred Exception Report:
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> 
>  at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
> Source)
>  at org.apache.jsp.fHome$jsp._jspService(fHome$jsp.java:188)
> ..............................................
> 
> I think the problem might be something to do with not being able to read my
> ApplicationResources.properties, but I cannot find a way to solve this
> problem yet.  If I remove all tags which reference the ApplicationResources
> the .jsp file loads ok.
> 
> I've followed the instructions according to the installation file at:
> 
> http://www.lifl.fr/~dumoulin/tiles/doc/installation.html
> 
> and I've place the .tld, and .jar files in the relevant directories, and
> modified my web.xml file with:
> 
> <servlet>
>     <servlet-name>action</servlet-name>
> 
> <servlet-class>org.apache.struts.tiles.ActionComponentsServlet</servlet-clas
> s
>     <init-param>
>       <param-name>definitions-config</param-name>
>       <param-value>/WEB-INF/tilesInstances.xml</param-value>
>     </init-param>
> ...
> 
> Have I missed something out, or does someone know what the problem might be?
> 
> Thanks
> 
> Peter
> 
> --
> 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>


struts / tiles / ApplicationResources problem

Posted by peter <pe...@btinternet.com>.
Hi

Just installed tiles, which I'm running with struts1.0, and I get the
following error when I try to load my .jsp file:

A Servlet Exception Has Occurred Exception Report:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

 at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
Source)
 at org.apache.jsp.fHome$jsp._jspService(fHome$jsp.java:188)
..............................................

I think the problem might be something to do with not being able to read my
ApplicationResources.properties, but I cannot find a way to solve this
problem yet.  If I remove all tags which reference the ApplicationResources
the .jsp file loads ok.

I've followed the instructions according to the installation file at:

http://www.lifl.fr/~dumoulin/tiles/doc/installation.html

and I've place the .tld, and .jar files in the relevant directories, and
modified my web.xml file with:

<servlet>
    <servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.tiles.ActionComponentsServlet</servlet-clas
s
    <init-param>
      <param-name>definitions-config</param-name>
      <param-value>/WEB-INF/tilesInstances.xml</param-value>
    </init-param>
...

Have I missed something out, or does someone know what the problem might be?

Thanks


Peter



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


Re: struts with tiles

Posted by Ted Husted <hu...@apache.org>.
It is not known when 1.1 will be released. 

http://jakarta.apache.org/struts/userGuide/kickstart.html#release

It's easy to incorporate Tiles into your current project now, which is
what I would recommend.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


peter wrote:
> 
> hi
> 
> Does anybody know when the next version of struts (containing tiles) will be
> released?
> 
> Thanks
> 
> Peter
> 
> --
> 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>


struts with tiles

Posted by peter <pe...@btinternet.com>.
hi

Does anybody know when the next version of struts (containing tiles) will be
released?


Thanks


Peter


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