just curious..how do u pick the ActionForm from request? Each ActionForm
has potentially a different name....   is it a struts trick?

Take a look at the webServiceResponse.jsp... The pertinent lines are:

ActionConfig mapping = (ActionConfig)request.getAttribute("org.apache.struts.action.mapping.instance");
String actionFormName = mapping.getName();
Object form = request.getAttribute(actionFormName);


I'm not sure it's a trick or anything, but it works :)

well, as long as they are in an XML I don't see any problems... it
should
be enough that the element is in the XML, not necessarily element1
before
elemen2...  coz when the XML arrives to the client, the client will look
for certain elements, without caring on the order.

I'd say that's probably true MOST of the time, but I could see where maybe you want to supply your clients with a DTD describing the output, and maybe you want to ensure a specific order, either for processing or just consistently. I've always felt that XML hasn't reached it's real potential because people tend to put a lot of restrictions on the format of a message, and then code doesn't get written in such a way that you can basically query for a specific element. If you do things that way, then yes, order doesn't matter at all, but I'd like the have the capability of doing both.


Then this looks the way :-) ..hopefully during the night u will find
more
Responses on this from Struts committers...

A this point I'm more interested in getting feedback from people that might actually use this... People like yourself. That way I can refine it a bit before presenting it to anyone "official". I believe it's a useful thing, something that people would be interested in using, but if I'm the only one that thinks so then there's no point.


I'm making good progress on things so far today, I should put out .02 before I leave it looks like.


As I said, it was just a wild idea... if u can invoke aspects (to log
etc)
At certain point in a class/method, u could  reuse same technique before
Exiting the execute() method of an action... redirecting to the proper
page.. thought my brain stops here... I m talking from examples that I
have seen, I haven\t had the time 2 practice ...

That's an interesting thought, but I think it still comes down to changes to the Actions, even if very minor ones (like my previous version that needed two function calls). In the long-run that may be required for some things anyway, but I'm trying to avoid it (so far I've been able to).






_________________________________________________________________
Watch the online reality show Mixed Messages with a friend and enter to
win
a trip to NY
http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/
01/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to