DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15721>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15721

Module switching and ActionMappings out of synch...

           Summary: Module switching and ActionMappings out of synch...
           Product: Struts
           Version: 1.1 Beta 2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

It seems that after a module switch the action mappings for new module is not 
in the application(ActionServlet...)  context:

I have defiend a module, named ...bid.

I use the SwitchAction with request parameters page and prefix and manages to 
get to the bod application.

Inside the bid application on a jsp page I have:

<html:link forward="BidWelcome">Welcome</html:link>

The error message says:

javax.servlet.ServletException: Cannot create rewrite URL: 
java.net.MalformedURLException: Cannot retrive ActionForward named BidWelcome
        at org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:463)

The BidWelcome is registered in the struts-config-bid.xml file..


The following workaround shows the  struts-config-bid.xml file is correct:

<a href="/web/bid/BidWelcome.do">BID Welcome</a>

This works...


Problem is that the module then is tighly coupled with the deployment web app
(web) and the jsp page needs to be altered according to the module name.

Thus the module concept itself fails with this bug....


Hope you have a patch....

/Morten

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

Reply via email to