Struts assistant configuration / project layout question

Hello,

I'm trying to set up the Struts assistant in an existing project, but I've run into a problem with my JSPs : all references to action mappings (eg. ) are maked as errors : the mappings don't seem to be taken into account here. They are properly recognized in the Struts configuration file, though, and the Web Flow diagram works fine. Here is my project layout (simplified) : /top /pages *.jsp /src /java /test /WEB-INF struts-config.xml web.xml ... The web.xml defines the usual ActionServlet mapping : action *.do The Web Module Settings are as follows : Web Resources directories : /pages => /pages /WEB-INF =>]]> /WEB-INF

How could I make that work ?
Thanks for your help.

0
5 comments

This is a known issue: http://www.jetbrains.net/jira/browse/STRUTS-145.
It's fixed in Selena, but I hope it will be integrated into Demetra also.

0
Avatar
Permanently deleted user

Thanks a lot. The bug report mentions that this is probably not a good thing to do, do you know why ?

0

If you later decide to change your ActionServlet's mapping e.g. from .do to /myApp/ you'll have to change all those references in your JSPs :)

0
Avatar
Permanently deleted user

OK, that makes sense. Thanks !

0

Please sign in to leave a comment.