yep, load-on-startup is declared. i'm using it this way:

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
[...]
<load-on-startup>1</load-on-startup>
</servlet>



Phyl



Erik Weber wrote:

Make sure you have load-on-startup declared in web.xml! I had a problem with Struts not being loaded at all when I didn't have this declared, and the first request did not cause it to load either.

Erik


Phyl wrote:


Hi,

I've been developing a struts webapp using tomcat and am now trying to deploy it to my webserver. I copied every class and jsp manually since there is no .war deployment available on the server.
Invoking a simple jsp directly works fine, however, when invoking a *struts' jsp* this exception is being thrown:


javax.servlet.jsp.JspException: Cannot find global ActionForward for name welcome
at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:142)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...


this is the associated .jsp:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
    <body>
         <logic:forward name="welcome"/>
    </body>
</html>

It seems the "welcome" global forward isn't being found in struts-config, but I'm sure it exists.
When calling an action directly I get a "Not Found" error. I'm beginning to doubt that struts-config.xml is even being loaded.
What do you think might be the problem?



thanks in advance, Phyl






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



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



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



Reply via email to