Hello,

  Normally, you don't have to reimplement your jsp pages. You can use them as body 
with no
modifications. However, I recommend to suppress all html <head> and <body> tags from 
tiles/body. In
practice, you can left them, as html browsers don't complain too much if there is 
several time <head>
and <body>.

  The error you mentioned is a problem with application resources : as you use them, 
you need to
declare them :

   * in web.xml if you use Struts1.0.2
   * in struts-config.xml if you use Struts1.1

   Also, you should declare the file containing your key-value pairs

   Hope this help,

     Cedric

[EMAIL PROTECTED] wrote:

> My current project is using Struts 1.0 and I already implemented about 20%
> of my .jsp files,
> without giving too much thought to the navigation.
> Now I want to use tiles to implement the sidebar menus for navigation.
> I am hoping this does not mean I will have to re-implement  those .jsp
> files, i.e.
> I imagine I could simply put each of my jsp files in the
> place where we put body.jsp. However I am getting an error message because
> each of my jsp
> pages is using this tag "bean:message key=index.title".
>
> In my struts-config.xml I added  this tag for message-resource:
>   message-resource parameter
> ="org.apache.struts.example.tiles.dev1-1.ApplicationResources" null="false"
>
> I tried both: tiles for struts 1.0 and tiles for struts 1.1 with the same
> error message (see
> bellow).
> Searching  the mail-archive I found the same error but the scenario was
> different - that tiles user *was
> not using* the ApplicationResource, but was forced to specify it anyways.
> In my case *I am
> using* the ApplicationResource but the servlet cannot find it when I am
> using tiles. It finds it ok
> if I am not using tiles, i.e. if I am using just struts 1.0.
>
> javax.servlet.jsp.JspException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
>         at
> org.apache.struts.util.RequestUtils.message(RequestUtils.java:735)
>         at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
>         at org.apache.jsp.index$jsp._jspService(index$jsp.java:93)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>         at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>         at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>         at java.lang.Thread.run(Unknown Source)
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to