wood burning stoves 2.0*
The moose likes Struts and the fly likes Unable to fetch data on a specific JSP....getting error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help." Watch "Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help." New topic
Author

Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help.

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
iam getting the following error:-

HTTP Status 404 - /getData.do

--------------------------------------------------------------------------------

type Status report

message /getData.do

description The requested resource (/getData.do) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.26



What i want. There is a registeration jsp called 'registerProducts.jsp' where iam registering new products. There is one index.jsp which has two links.
index.jsp:-


What i want when the User clicks on Choose Products link then one JSP should be called which would display all the records of Products from sql server on that .
Iam using struts and hibernate.
Iam not getting exact result.
Following are the details:-
struts-config.xml


SelectAction.java:-


Products.jsp:-

registerProduct.jsp:-


RegisterForm.java:-


ProductRegister.java:-


getProduct.hbm.xml:-


registerProduct.hbm.xml:-


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

I think SelectAction needs to extend org.apache.struts.action.Action class...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help.
 
Similar Threads
Unable to display the Data from SQL SERVER 2005 on a JSP through <c:forEach> tags
Problem in SessionManagement in Struts
Struts & Hibernate Integration unable to delete values from MYSQL database
java.lang.IllegalArgumentException: argument type mismatch
Verification failed on Username existence check using AJAX