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]
> >
> >
> 


-- 
Cheers,
Sudhaker Raj
http://thej2ee.com

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

Reply via email to