princehyderabad
asked on
404 error
hi experts,
simple error. My hosting compnay using resin 2.0 and I;m having this 404 error, even though everything is in place.
404 Not Found
/InsertQuestion was not found on this server.
JSP:
<FORM action="QuestionSubmit.do" method="POST">
...
STRUTS-CONFIG.xml
<action path="/QuestionSubmit" type="org.apache.struts.ac tions.Forw ardAction" parameter="/com.xxx.Insert Question"> </action>
also tried
<action path="/QuestionSubmit" type="org.apache.struts.ac tions.Forw ardAction" parameter="/InsertQuestion "> </action>
Java:
..
public class InsertQuestion extends HttpServlet implements Servlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
...
getServletContext().getReq uestDispat cher("/Que stionTest. jsp?ID="+r owid+"n="+ name).forw ard(req,re sp);
..
..
And I have placed class files: <web-inf>/<class>/<com>/<x xx>class files...
also I placed my class files in root <dir> and <web-inf> just to try... but still didnt worked.
Where am I going wrong.
Thx,
PH
simple error. My hosting compnay using resin 2.0 and I;m having this 404 error, even though everything is in place.
404 Not Found
/InsertQuestion was not found on this server.
JSP:
<FORM action="QuestionSubmit.do"
...
STRUTS-CONFIG.xml
<action path="/QuestionSubmit" type="org.apache.struts.ac
also tried
<action path="/QuestionSubmit" type="org.apache.struts.ac
Java:
..
public class InsertQuestion extends HttpServlet implements Servlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
...
getServletContext().getReq
..
..
And I have placed class files: <web-inf>/<class>/<com>/<x
also I placed my class files in root <dir> and <web-inf> just to try... but still didnt worked.
Where am I going wrong.
Thx,
PH
princehyderabad,
>> <web-inf>/<class>/<com>/<x xx>class files...
Should be
>> <web-inf>/<classes>/<com>/ <xxx>class files...
_________
radarsh
>> <web-inf>/<class>/<com>/<x
Should be
>> <web-inf>/<classes>/<com>/
_________
radarsh
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>Why are you extending HttpServlet if you are using Struts? Shouldn't you be writing Action classes?
You are right "runa_paathak" I should be using action. I was just trying to follow example set by "pankilpatel"
I was able to do same with Action, but only thing I'm missing or dont know is how to pass paramenter to JSP from Action class.
thanks for all.
You are right "runa_paathak" I should be using action. I was just trying to follow example set by "pankilpatel"
I was able to do same with Action, but only thing I'm missing or dont know is how to pass paramenter to JSP from Action class.
thanks for all.
ASKER
503 Unavailable
javax.servlet.UnavailableE