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.
Please sign in to leave a comment.
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.
Thanks a lot. The bug report mentions that this is probably not a good thing to do, do you know why ?
No, I do not :)
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 :)
OK, that makes sense. Thanks !