Thanks for pointing out AjaxTags... I think it might indeed be a decent
answer in this case.
However, I'd like to point out that the Struts-specific version of
AjaxTags referenced here is no longer being developed. There is now a
non-Struts-specific version which is a part of Java Web Parts
(http://javawebparts.sourceforge.net). This version, in addition to not
being tied to Struts at all, is more flexible and powerful than the
original version. I highly suggest anyone thinking of using this
approach look at that version. Just go to the above web site and click
on the Javadocs link, then head to the AjaxTags package in the taglib
package. The package summary should do a decent job of getting someone
familiar with it.
It should also be mentioned that there is now a separate AjaxTags
project that IS NOT the same as my AjaxTags... the authors of that
project were less than cooperative in dealing with the conflicting name,
so I now feel obliged to point out and differentiate whenever either is
brought up :)
Frank
Sudhaker Raj wrote:
When you return null from any Action class execute method, that tells
framework not to bother about doing any forward or include or
anything. This means you need to handle the response by yourself.
Something like...
response.setContentType("text/plain");
response.getWriter().write("Bingo, you got it.");
Since you are not doing anything to handle the response, you will get errors.
Like I said in my last mail, you need AJAX to do something without
reloading the page. Check these:
http://struts.sourceforge.net/ajaxtags/index.html
http://openrico.org/rico/home.page
On 8/26/05, Sudhaker Raj <[EMAIL PROTECTED]> wrote:
U need AJAX to rescue you.
On 8/26/05, Van Henreich Rontal <[EMAIL PROTECTED]> wrote:
Hi,
I'm not sure if this has been tackled already or it's
a feature available to Struts cause I don't think it
is normally use.
I have all these messages on a webpage and at a
certain point in time, I want to abort the generation
of these messages so i press an abort button. I would
then need some java code to be executed for cleanup. I
thought of placing it inside a struts action class,
but the problem with that is that in needs a forward
page, but I would not want my messages in the the
current page to be lost they'll be replaced with the
new forward page. Any idea how to get away with these?
I've thought of caching them. One way is to pass
messages on the request or session objects, which I
doubt if it is efficient enough cause there might be a
lot of these messages, or is it just ok and it's not
really inefficient?
I tried returning a "null" instead of an ActionForward
on the Action's execute() method, but the webpage
generates an error. Any suggestions?
Thanks a lot.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]