You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Peter L. Berghold" <pe...@berghold.net> on 2008/01/02 20:32:41 UTC

Struts 1.3 modules.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maybe I'm misunderstanding just what Struts modules do, but I'm trying
to migrate from Struts 1.2 to Struts 1.3 and I'm running into some issues.

What I **think** 1.3 is going to buy me is the ability to split out
pieces of my web application into their own struts-config.xml files and
struts will know how to find the actions.

Seems to me this is not the case, but I'm sure I'm missing something here.

In an attempt to keep things simple, I have a file
struts-config-public-pages.xml.  In the web.xml file I have:

   <init-param>
      <param-name>config/public-pages</param-name>
      <param-value>/WEB-INF/struts-config-public-pages.xml</param-value>
    </init-param>

along with the usual stuff that should be in there.   I have an
index.jsp page in the top level of the application that simply does a
redirect as follows:

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


(Yes.. I have the tld in the right place..)

When I attempt to enter the application I get:

org.apache.jasper.JasperException: Cannot create redirect URL:
java.net.MalformedURLException: Cannot retrieve ActionForward named welcome
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Obviously something is amiss here.

Can somebody give me a pointer?

Thanks in advance,

- ----

Peter L. Berghold                   Unix Professional
Peter@Berghold.Net             AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHe+bYUM9/01RIhaARAhspAJ9S9ds1cpAE+eZ3ZCSCD1/h20AV0QCgp6Tk
hLi6JxlCnCo1N1s2AmrTTNo=
=XFIk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts 1.3 modules.

Posted by "Peter L. Berghold" <pe...@berghold.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter L. Berghold wrote:
> Maybe I'm misunderstanding just what Struts modules do, but I'm trying
> to migrate from Struts 1.2 to Struts 1.3 and I'm running into some issues.
> 
> 

Never mind.. figured out what was going on.....


Seems when you invoke modules it munges the path names as well.   No
problem...

Just more work to do...

- ----

Peter L. Berghold                   Unix Professional
Peter@Berghold.Net             AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHe+iAUM9/01RIhaARAgdTAJ0fQnz7Mzla1Lh6L8Z2FTv1D9eVogCgxTeX
Hpqmt3Q0/XpF60009jBh6xQ=
=K7cG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org