I use this code for a different reason than what you are looking for, but it is an interesting way to call actions from any html page.
function doSubmit(callingDocument, actionName, paramArray, target){ var a_form = callingDocument.createElement('form'); a_form.setAttribute('method', 'post'); a_form.setAttribute('action', actionName); a_form.target=target; callingDocument.body.appendChild(a_form); for(i=0;i<param.length;i++){ var param = callingDocument.createElement('input'); param.setAttribute('type', 'hidden'); param.setAttribute('name', paramArray[i].name); param.setAttribute('value', paramArray[i].value); a_form.appendChild(param); } a_form.submit(); callingDocument.body.removeChild(a_form); } -Robert Douglass -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fred Lamuette Sent: Friday, September 26, 2003 6:46 PM To: [EMAIL PROTECTED] Subject: RE: [OS-webwork] Managing URLs from view Yes, I understand, but my main problem remains the use of a tag like <ww:action > in Velocity (no jsp). How can I do ? -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Jason Carreira Envoye : vendredi 26 septembre 2003 16:54 A : [EMAIL PROTECTED] Objet : RE: [OS-webwork] Managing URLs from view If you define Actions in a package with a null namespace, they will be available from any path (unlike Actions defined in a namespace, which are only available in that namespace), so you could define some common Actions in a default package and use them anywhere. Is this what you mean? > -----Original Message----- > From: Fred Lamuette [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 25, 2003 4:11 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] Managing URLs from view > > > Ahahahah, I think you can see I come from the Struts world, I > dont master WebWork at all, I'm sorry. Is it possible with > WW2 to declare some global entry points in the application > with a logical name (declared as <global-forwards> in Struts) > that could be the actions to login, to logout or to go in the > admin settings, and we could reference in the views by a > simple name ? I'm using Velocity as template engine. Thank > you. Richard. > > > -----Message d'origine----- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > la part de Robert Douglass Envoye : jeudi 25 septembre 2003 > 21:41 A : [EMAIL PROTECTED] > Objet : RE: [OS-webwork] Managing URLs from view > > > Perhaps he means <ww:action> ? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Jason Carreira > Sent: Thursday, September 25, 2003 7:48 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] Managing URLs from view > > > I don't think I understand... What are you trying to do? > > > -----Original Message----- > > From: Fred Lamuette [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 25, 2003 6:23 AM > > To: Webwork > > Subject: [OS-webwork] Managing URLs from view > > > > > > Is it possible to reference easily a <global-result> url written in > > the XWork conf file from the view (in my case, > > velocity) ? Cheers. Richard. > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork