Thank you very much for your reply.
I am pasting the code for TestAction.java file below
/////////////////////////
package devika;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class TestAction extends Action
{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception{
return mapping.findForward("testAction");
}
}
//////////////////////////////////
Then why m i getting page cannot be diplayed error ?
> >Hello All,
> >
[quoted text clipped - 28 lines]
> Tim Slattery
> Slattery_T@bls.gov
in_dv - 10 Nov 2006 16:20 GMT
Hi all,
I checked the apache logs and found the error that
<APP-ROOT>/TestAction.do file does not exist. Its probably
misunderstanding it as link rather than action.Its trying to look for
the file TestAction.do rather than finding the action mappings for *.do
. What configuration m I missing for this behaviour? I truly appreciate
your help
Thanks
> Thank you very much for your reply.
> I am pasting the code for TestAction.java file below
[quoted text clipped - 58 lines]
> > Tim Slattery
> > Slattery_T@bls.gov
impaler - 10 Nov 2006 17:10 GMT
> Hi all,
>
[quoted text clipped - 5 lines]
> . What configuration m I missing for this behaviour? I truly appreciate
> your help
It seems that the servlet hasn't been started or the servlet mapping is
wrong.
Check the startup logs of tomcat to see if it fails to start the action
servlet and if all is ok, check if the *.do pattern is set to be
handled by action servlet. Watch out for cases ('action' and 'Action'
are not the same).
in_dv - 10 Nov 2006 19:41 GMT
Hi I checked out the startup logs, but it doesnt show any error .
Actually I am working with apache and apache is supposed to forward
this request to tomcat. which is not happening..Do you know how to
configure apache to forward the requests to tomcat
devika
> > Hi all,
> >
[quoted text clipped - 12 lines]
> handled by action servlet. Watch out for cases ('action' and 'Action'
> are not the same).