• Post Reply Bookmark Topic Watch Topic
  • New Topic

Requested source is not available

Sharma Rajesh
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="http://struts.apache.org/tags-logic" prefix="logic" %>
<logic:redirect forward="helloWorld"/>

here it says
is not available.

Pl. tell me what to do.
Thanks in advance
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!