File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Requested source is not available" Watch "Requested source is not available" New topic

Requested source is not available

Sharma Rajesh

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 {
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="" prefix="logic" %>
<logic:redirect forward="helloWorld"/>

here it says
is not available.

Pl. tell me what to do.
Thanks in advance
I agree. Here's the link:
subject: Requested source is not available
It's not a secret anymore!