404- File Not Found Error
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, April 29, 2006 04:37 AM

Hi, I am creating a J2EE application and i am using MVC model. For viewing purpose i have created a jsp file and i am sending a request to controller Servelt which in terms calls appropriate action class. I am sending parameter from jsp to Controller servlet through following code. a href= "ControllerServlet/View/Details?parameter = value" i have set base href as i am running my source on WSAD 5.0. and port number which i am using is 9080. In tool.action package i have made a class viewDetails.java which calls the model class and does query execution. But whe   More>>

Hi,




I am creating a J2EE application and i am using MVC model.


For viewing purpose i have created a jsp file and i am sending a request to controller Servelt which in terms calls appropriate action class.


I am sending parameter from jsp to Controller servlet through following code.



a href= "ControllerServlet/View/Details?parameter = value"


i have set base href as







i am running my source on WSAD 5.0. and port number which i am using is 9080.


In tool.action package i have made a class viewDetails.java which calls the model class and does query execution.




But whenever i m running my code and i am clicking that link it is showing 404-file not found error.
i have checked my code there is no typo error.



somebody please help me.





Thanx

Tariq

   <<Less

Re: 404- File Not Found Error

Posted By:   yo_yo  
Posted On:   Monday, May 15, 2006 10:52 AM

SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.
SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.
SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.
SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.SMD.

Re: 404- File Not Found Error

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, May 7, 2006 09:24 AM

1. make sure that path (ControllerServlet) is mapped, in web.xml, to your servlet class;



2. perhaps you need a leading "/" at the front of the path in your "href"?
About | Sitemap | Contact