Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2007, 12:11 AM
Registered User
 
Join Date: Apr 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mona_1dec
Default HTTP 404 Requested resource is not available

Hi,
  I am creating my application in struts.I want to get data from jsp page and then need to store it into MySQL database.
  when I click on submit button of jsp page I get the following error.
------------------------------------------------------------
  HTTP status 404 - /jobdetails
  type Status report
  message /jobdetails
  description The requested resource (/jobdetails) is not available.
------------------------------------------------------------------

this is in JSP page..
<form method="POST" action="/jobdetails" name="jobActionForm" type="com.myapp.struts.JobActionForm">


this is in Struts-config.xml
<action name="jobActionForm"
            type="com.myapp.struts.JobAction" validate="true"
            input="/jobshedule.jsp" scope="session" path="/jobdetails">

-------------------------------------------------------------------
Can anybody please help me?
Thanks in advance..:)
 
Old April 5th, 2007, 03:37 PM
Registered User
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use struts form tag,some times this html form tag may give some problem in finding action path.

 
Old April 9th, 2007, 06:17 AM
Registered User
 
Join Date: Apr 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mona_1dec
Default

Thanks for reply but I couldn`t get it. what do you mean by struts form tag? do I need to use <html:form> tag? if so then I hv already tried that. but still the same error is coming. actually my jsp page include all HTML tags. Is it can be a problem? I saved this HTML page using .jsp extension as if it is a jsp page.

Monali Swarge
 
Old April 16th, 2007, 11:47 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
you might need to change the value of action attribute in form tag to

<form method="POST" action="jobdetails.do" name="jobActionForm" type="com.myapp.struts.JobActionForm">
...

Regards,
Rakesh :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP Status 404 rivcam JSP Basics 7 June 3rd, 2008 09:32 PM
http 404 brenden J2EE 1 February 16th, 2006 05:44 AM
Resource not found - HTTP -404 javz_1 Apache Tomcat 1 January 16th, 2006 05:35 AM
HTTP 404 - again javacelt JSP Basics 1 November 1st, 2003 06:16 PM
HTTP status 404 brianjs JSP Basics 2 October 26th, 2003 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.