read the source code

2009-10-28 Thread mark lu
I want to read struts2's source code,but i found it's too complicated. so,i want to find a book that analysis the soure code. who can give me some suggestions?recommend some books to me? thanks very much!! -- View this message in context:

Re: RE: Adding Json to existing action

2009-10-28 Thread Michael Varlik
Hi, I already use the json plugin. I have written a new action to test the plugin and it works fine - I get my json result. But for some reason it doesn't work with the existing action (I didn't write this action). Here's what I did: * Installed the json plugin by copying it into WEB-INF/lib *

Re: RE: Adding Json to existing action

2009-10-28 Thread Michael Varlik
Hi, whis is the mapping for the action as it is currently used in the application. No json here: action name=getDailyAssetUtilizationReport class=com.pbvm.crr.web.assetcalendar.AssetCalendarAction method=getDailyAssetUtilizationReport

Re: read the source code

2009-10-28 Thread Wes Wannemacher
As far as I know, there are no books that specifically analyze the source code for Struts 2. I would suggest starting by reading the source code to Xwork. To really get a handle on what is going on, first try to get a solid understanding of the command pattern design pattern. Then, take a look at

Re: deserializable ActionSupport

2009-10-28 Thread Greg Lindholm
I believe the short answer is you can ignore this warning. If really inclined you could create your own base class that extends from ActionSupport and implements readObject(). It's very common in web frameworks to use Serializable objects for a couple or reasons, such as being able to preserve

Re: deserializable ActionSupport

2009-10-28 Thread Musachy Barroso
The people who made that decision are by now long gone, and I can't think of any good reason myself. musachy On Wed, Oct 28, 2009 at 7:26 AM, Greg Lindholm greg.lindh...@gmail.com wrote: I believe the short answer is you can ignore this warning.  If really inclined you could create your own

Re: deserializable ActionSupport

2009-10-28 Thread Lukasz Lenart
2009/10/28 Musachy Barroso musa...@gmail.com: The people who made that decision are by now long gone, and I can't think of any good reason myself. As I know, ActionSupport is a part of XWork (common purpose action framework) that is used by example in WebLogic 8.1 to manage multiple tasks with

[S2] Jsp not loading bean from superclass static method

2009-10-28 Thread Neil Aggarwal
Hello: I jut upgraded from Struts 2.0.14 to 2.1.8 and noticed I am now getting this error: SEVERE: Servlet.service() for servlet jsp threw exception The requested list key 'accountManagerMap' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or

Re: [S2] Jsp not loading bean from superclass static method

2009-10-28 Thread Lukasz Lenart
You have to define constant as below in struts.xml or in struts.properties - from some version is set to false by default struts.ognl.allowStaticMethodAccess=true Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/

RE: [S2] Jsp not loading bean from superclass static method

2009-10-28 Thread Neil Aggarwal
Lukasz: struts.ognl.allowStaticMethodAccess=true I will try that. Neil -- Neil Aggarwal, (281)846-8957, http://www.JAMMConsulting.com CentOS 5.4 KVM VPS $55/mo, no setup fee, no contract, dedicated 64bit CPU 1GB dedicated RAM, 40GB RAID storage, 500GB/mo premium BW, Zero downtime

Re: Convention Plugin - Setting dynamic parameter values

2009-10-28 Thread Roger
On Friday 16 October 2009 19:29:05 Musachy Barroso wrote: when you declare a result using annotations, the param values can contain OGNL values, just like in xml,: @Action(value=/different/url, result...@result(name=success, type=httpheader, params={status, %{status}, errorMessage,

Getting result of JSP before sending to client

2009-10-28 Thread Steven Yang
Hi I am wondering is there a way in Struts2 to get the result of JSP before returning the composed HTML back to client? for example public String execute() { ...do my logic and prepare my data ...then using the data, compose a HTML file from existing jsp ... then i need to save the HTML

Re: read the source code

2009-10-28 Thread mark lu
Thank you very much for your reply! I have read some code of xwork.however,i am a littel lazy,so i want to find a book to introduce . now that there is no book,I'll follow what you said. Wes Wannemacher wrote: As far as I know, there are no books that specifically analyze the source code

Re: read the source code

2009-10-28 Thread Wendy Smoak
On Wed, Oct 28, 2009 at 6:50 PM, mark lu liujuns...@ygsoft.com wrote: Thank you very much for your reply! I have read some code of xwork.however,i am a littel lazy,so i want to find a book to introduce . now that there is no book,I'll follow what you said. It would be great if you could write