jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Requested source is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Requested source is not available" Watch "Requested source is not available" New topic
Author

Requested source is not available

Sharma Rajesh
Greenhorn

Joined: Jun 28, 2011
Posts: 6
Hi All
My struts application says that the requested source(StrutsExample1) is not available.
Also when i make the Action class and ActionForm Bean then it says that

import org.apache.struts.action.ActionForm;
is not available(org.apache.struts.action.ActionForm)
My code for ActionForm is


package com.vaannila.form;
import org.apache.struts.action.ActionForm;

public class HelloWorldForm extends ActionForm {

private static final long serialVersionUID = -473562596852452021L;

private String message;

public String getMessage() {

return message;
}
public void setMessage(String message) {

this.message = message;

}
}


This is code for Action class

package com.vaannila.action;

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;
import com.vaannila.form.HelloWorldForm;
public class HelloWorldAction extends Action {
@Override
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {

HelloWorldForm hwForm = (HelloWorldForm) form;

hwForm.setMessage("Hello World");

return mapping.findForward("success");

}
}

here it says ActionMapping,ActionForward is not available.

My Index.jsp is this

<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<logic:redirect forward="helloWorld"/>

here it says
http://struts.apache.org/tags-logic
is not available.

Pl. tell me what to do.
Thanks in advance
Rajesh
 
wood burning stoves
 
subject: Requested source is not available
 
Similar Threads
Error: creating bean of class (HELP THE NEWBE)
which are the main packages to import while writing a strut app?
404 Error
Once more: javax.servlet.jsp.JspException: Cannot find bean
javax.servlet.jsp.JspException: No getter method for property: "id" of bean: "Login.LoginForm"