Beta-Test Struts Plugin V0.75: Commons-Validator, Tiles JSP tags
For build #3496
This is a BETA version, please report errors/ideas for improvement.
Changes against V0.73beta:
- Validator: validation.xml: autocomplete/ highlight/navigation to form/form-property, message-keys; JSP: <html:javascript> "formName"
- Tiles JSP Tags: autocomplete/highlight/navigation for many attributes
- Allow Struts Code being placed in JAVA-Module used by depending WebModule
- Improvements regarding DynaForm-support (thanks Brad!)
- Bugfixes
Attachment(s):
strutsplugin_v075beta.jar
请先登录再写评论。
If I return from my action somewhere other than the last line, it highlights ActionHelper.FAILURE of mapping.findForward(ActionHelper.FAILURE) as "Could not resolve ..."
If I return from my action somewhere other than the last line, it highlights ActionHelper.FAILURE of mapping.findForward(ActionHelper.FAILURE) as "Could not resolve ..."
I just tried a couple of different constructs (if/else-blocks etc), it does highlight correctly for me. Can you post the basic structure of your Action-code and where the return statements are located?
Thanks,
Yann
Not sure if it matters but I'm using/extending a MappingDispatchAction. The code is something like this:
Most probably, your Action-class is mapped multiple times (with different "parameter"-values) in your struts-config.xml?
This is a shortcoming in the current implementation (multiple ]]> mappings - as used with MappingDispatchAction - are not scanned correctly yet), only the first mapping matching the Action-class is considered it should rather take into account the method-name to lookup the mapping with the matching "parameter"-value.
Btw, handling DBPersistenceException in your Action-code is IMHO not the best solution, I'd suggest catching low-level exceptions like this in Struts' ExceptionHandler.