Hi, I have an issue.I need to run a query to get a data say test from a table t.The query currently runs in an action class.Its taking 20 seconds to run.Now my problem is not all times t is going to have value and the users will be annoyed if I make them wait to check whether t exists or not.
select t from table
if(t!=null&&!(.equals("")))
{
return (mapping.findForward(result));
}
// Normal flow
It will be good that I always excecute the normal flow and run the query in background and interrupt whenever I get a value for t and return to the page mentioned in struts config.Is there a way to do this?