On maandag, jun 2, 2003, at 19:48 Europe/Amsterdam, Jason Carreira wrote:
We ignore it because many of the results will fail, such as the
redirect, when you try to run them after the page has started to render.
Sounds quite logical (I'm not a JSP expert (yet ;-))
You can do a ww:include to include a template, if you like...
There is no include tag in WW2... A bug? I could use the standard JSP include, or port it over from WW1.
Hendrik
-----Original Message----- From: Hendrik van der Linde [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2: include based on action result
Hi,
My app is very simple, I don't think an example would add anything useful. Besides that I found out that the JavaDoc of ActionTag states:
ActionTag enables developers to call Actions directly from a JSP page by specifying the Action name and an optional namespace. The body content of the tag is used to render the results from the Action. Any Result processor defined for this Action in xwork.xml will be ignored.
Does the above mean that results are no further processed? Does this include ERROR as well? What could be the use of that? I guess defining nothing in xwork.xml for a certain action would achieve that (==no) result, so why actively ignore it?
Hendrik
On dinsdag, mei 27, 2003, at 20:49 Europe/Amsterdam, Jason Carreira wrote:
Try not having the namespace="/" in there... It might becausing theproblem.difference
Can you send an example app?
Thanks,
Jason
-----Original Message----- From: Hendrik van der Linde [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 2:41 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2: include based on action result
On dinsdag, mei 27, 2003, at 20:07 Europe/Amsterdam, Jason Carreira wrote:
Your xwork.xml looks ok... What's it doing again?as a URL it
If you post to it from a form it works, but if you hit itdoesn't?
Sorry, I don't remember the details...
Here's a snippet from my main jsp page:
<ww:action name="login" id="login" namespace="/" />
<ww:form name="myForm" action="login .action" method="POST">
<input type="submit" value="Submit"/> </ww:form>
The first action doesn't do anything, the second one works.
Hendrik
Jason Carreira
Jason
-----Original Message----- From: Hendrik van der Linde [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW2: include based on action result
On zaterdag, mei 24, 2003, at 05:01 Europe/Amsterdam,to do (justwrote:
If you map a JSP page using the "dispatcher" result, thisshould work,right? Or am I missing something?
I tried to do this, because this seems the logical thingif thereas in WW1). However nothing happens. Could someone tell meexecutedare any errors in my xwork.xml?*snip*
(I placed login.jsp in the root of my .war; the jsp can bewhen I go to the URL directly.)
The 'funny' thing is that when I have my action executed from a simple WW form, the action result is processed. Is thissomeone to theintentional? (Which would mean that what I want is not possible?)
You can also add a global-result for "login" and have aninterceptorthat checks your login stuff and returns "login" withoutexecuting therest of the action, and it will always go to that JSP.
I will look into this. Seems quite elegant to takerequires login.login page when he wants to execute an action thatanother by(This is possible when using JAAS and form based login, btw.)
Hendrik
Jason
-----Original Message----- From: Hendrik van der Linde [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2003 2:50 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] WW2: include based on action result
Hi,
In webwork 1 it is possible to include a JSP page inif she is.This way yousetting the result of an action to a particular JSP.display acould program in a condition in your action. For examplepage with a login form, if the user is not logged in, and a logout pageconditionHow can this be done in webwork 2, without coding thehttps://lists.sourceforge.net/lists/listinfo/opensymphony-webworkFor example:interceptor tointo the jsp page (using if's)? Ultimately I want to use ancode the condition, and thus short-circuit the action.application fit in a
[begin main page]
<ww:action name="user_messages" />
[/end main page]
Is this possible; what do you think?
Regards, Hendrik
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make yourObjectStore.relational database is painful, don't do it! Check outNow part of Progress Software.http://www.objectstore.net/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webworkObjectStore.fit in a
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your applicationrelational database is painful, don't do it! Check outNow part of Progress Software.http://www.objectstore.net/sourceforge_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
ObjectStore.application fit in a
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make yourObjectStore.relational database is painful, don't do it! Check outfit in aNow part of Progress Software.http://www.objectstore.net/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your applicationrelational database is painful, don't do it! Check outapplication fit in aNow part of Progress Software.http://www.objectstore.net/sourceforge_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make yourObjectStore.relational database is painful, don't do it! Check outfit in aNow part of Progress Software.http://www.objectstore.net/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your applicationhttp://www.objectstore.net/sourceforgerelational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software._______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-> 6916-5
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork