I've noticed that form templates were removed from the new plugin
(struts2-dojo-plugin-2.1.0.jar\template\ajax). Does this imply we'll lose the
opportunity to make ajax validation for the whole form?
The old behavior was setting theme="ajax" validate="true" on tag.
-
No, it seems like a bug in CGLIB enhancer, which do not propagate annotations
to derived classes..
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=63787&messageID=180691#180691
--
Hello all! We're migrating our code from struts1 to struts2 and I consider
using struts2-struts1-plugin. In accordance to this, I need some clarifications
about logic of ScopedModelDrivenInterceptor.
Looking into intercept() method:
1. Interceptor checks whether class implements ScopedModelDr
Lately I discovered an interesting issue. When using validation with
"Spring"-ed actions (enhanced by Cglib) it seems that Cglib enhancer clears
annotations of basic class. For instance, trying to get annotations from
CreateUserAction$$EnhancerByCGLIB$$6a58cf48.edit() returns null (tested with
http://people.apache.org/builds/struts/2.0.5/struts-2.0.5-all.zip
You don't have permission to access /builds/struts/2.0.5/struts-2.0.5-all.zip
on this server.
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?t
For instance if I have an array of objects in my action class:
private MyObject[] objects;
How can I handle it with JSP? The example below throws an exception
Can I manage it with indexed properties?
-
Posted via Jive Forums
Yes I just was not sure that action object is placed to stack. If so, it would
be a better idea to make your own BaseActionSupport class extending
ActionSupport and override getText() methods. Then all your actions should
extend your base action. Thanks for your advice!
-
How can I obtain javax.servlet.ServletRequest object from within an struts2
interceptor?
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=47606&messageID=96157#96157
--
In Struts 1 I have an ability to substitute standard java.util.ResourceBundle
using with my own class which extends
org.apache.struts.util.MessageResourcesFactory. It was very useful if someone
wants to get their translations from database instead of using simple property
files.
In struts-conf