[ANN] Struts Plugin V0.4

Mainly bugfixes & small improvements to existing functionality:

V0.4 (08-16-05):
- NoDefaultForwardInspection: do not inspect when type is org.apache.struts.actions.ForwardAction

- NoDefaultForwardInspection: do not inspect if Action returns null (e.g. creating PDFs)

- Bugfix: resolve resources/tiles-defs.xml placed in arbitrary web resource directory using relative deployment path correctly *****

- InvalidForwardResourceInspection: support for forwards to Actions

- GotoDeclaration in struts-config.xml: support for forwards to Actions

- InvalidForwardResourceInspection: improve run times by first checking against Tiles forward names (if applicable)

- some smaller bugfixes & improvements


-


          • Tiles-integration should now be flawless for all kinds of project setups. Just make sure your tiles-defs.xml is located in a web resource directory which is correctly mapped in your Web Module Settings. Thanks to everybody who reported problems and non-working setups!


As well forwards to Actions (a.k.a. bad and evil Action-chaining ;) ) are now resolved automatically by examining the corresponding ActionServlet-declaration/mapping in web.xml (*.do or /do/ - styles are both supported).

Enjoy,

Yann

0
4 comments
Avatar
Permanently deleted user

Yann,

I really do appreciate your work, and like the plugin for the functionality I'm able to use.

However, my tile references still are not being found. I described my setup in a previous posting -- here's a synopsis, and this time I've also incuded its mapping in the "web module settings". I'm pretty certain that my project is properly configured -- when I "package" a file using IDEA, it gets deployed to the correct directory.

Directory layout:

/project-root
--/web
-


/jsp
-


sample.jsp
--/WEB-INF
---struts-config.xml
---tile-defs.xml
--/WEB-INF/register
-


struts-config.xml
-


tile-defs.xml

Web Module Mapping (2 entries):

directory: /web/jsp
path relative to deployment: /

directory: /web/WEB-INF
path relative to deployment: /WEB-INF

Thanks!

~ Keith

0

Keith,

can you mail me your zipped project in private to yannc76@yahoo.de ? I will have a look at it and try to debug it..

Cheers,
Yann

0
Avatar
Permanently deleted user

This update fixed all my red marks! thanks

I can navigate from my main struts file (struts-config.xml) to my any of my tile-defs files but there's no navigation from the additional struts config files to any tile-defs or from any til-def to any other tile def.

If I put the tile plugin config in every struts config, I get navigation.

0

This update fixed all my red marks! thanks

I can navigate from my main struts file
(struts-config.xml) to my any of my tile-defs files
but there's no navigation from the additional struts
config files to any tile-defs or from any til-def to
any other tile def.

If I put the tile plugin config in every struts
config, I get navigation.


this will be obsolete in the next version - all struts-config.xml's defined for an ActionServlet will be "merged" together automatically, so you can freely navigate between all config files (including tiles-configs).. ofcourse there's more cool stuff to come, stay tuned ;)

0

Please sign in to leave a comment.