No, there is an action in JPublish called a ScriptAction. Essentially when JPublish resolves an action name to the actual implementation it will search for the action in a predefined order, i.e. registered action classes first, followed by module actions, followed by scripts, followed by a lookup in the original class loader. If it reaches the script lookup and finds the script then it just executes the script as if it were the body of an execute method.

Right now if you want to use an XWork action in JPublish you must declare an action it using the <define-xwork-action> tag with the attributes for name, namespace, and execute-result. This will then get the actual XWork action from the ActionProxyFactory. This of course may change once XWork 1.0 comes out if the XWork API has changed since I implemented this.

-Anthony

Kris Thompson wrote:

Thanks.  I was aware of JPublish using scripting but I also heard (but
I'm not certain if this is true) that JPublish uses XWork in it.  If
that is true and maybe this is what you are referring to, do you use
BeanShell as your Action classes in XWork?

Kris

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anthony Eden
Sent: Monday, February 02, 2004 11:18 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Script Action

Kris,

I do it for all of my webapps now, using the script support in JPublish. I use BeanShell these days as my scripting language of choice

due to its similarity to Java. Works like a charm.

-Anthony

Kris Thompson wrote:



I haven't heard of those three you mentioned but this has been out for
awhile. http://www.artima.com/forums/flat.jsp?forum=121&thread=6087

There they used JavaScript as their classes.  Sounds cool but I haven't
really heard of others doing this.  XWork is a great platform to use
these tools since it is not dependant on the servlet API.  I would very
much be interested in hearing about others having used scripting
languages has their action classes.

Kris Thompson

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Donnerstag, Juergen
Sent: Monday, February 02, 2004 4:59 AM
To: '[EMAIL PROTECTED]'
Subject: [OS-webwork] Script Action

Hi,

I'm using xwork/webwork2 and would like to use scripted actions (BSF,
jpython, groovy, ...) instead of Java classes. Does anybody know how to
do it? I checked the docs, lists and wikis but did not find any
information.


Help is very much appreciated.
Juergen


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork







------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to