Hi Sam,

I'm not sure why you get an invalid action error. Make sure you've got
a clean build deployed. An invalid action error indicates that the
action is not defined in the struts config module. You could verify
that the generated struts config contains the action with
path="/processLogin". Look at the file...

build/WEB-INF/classes/_pageflow/struts-config-pageflow.xml

I was able to take your source code and JSP and deploy your example
successfully. I did not see the error you described. The only
difference I have is that in the JSP, I use the taglib I...

<[EMAIL PROTECTED] uri="http://beehive.apache.org/netui/tags-html-1.0"; 
prefix="netui"%>

Carlin

On 12/11/06, arockiasamy <[EMAIL PROTECTED]> wrote:

Hi

    when i do so i am getting  error in <netui:form action="processLogin">
in this place, denoting that
invalid action form. but i have done as in doc i.e
http://beehive.apache.org/docs/1.0.1/netui/tutorial.html#ceate

     In my controller i have  like this

           @Jpf.Controller(
      simpleActions = {
          @Jpf.SimpleAction(name="begin", path="/pageflow/index.jsp"),
          @Jpf.SimpleAction(name="login", path="/pageflow/login.jsp" )
      }
)
public class Controller
extends PageFlowController {

    @Jpf.Action (
         forwards= {
             @Jpf.Forward(name="success", path ="/pageflow/display.jsp")
         }
    )

    public Forward processLogin(LoginForm loginForm) {

        log("UserName    : " + loginForm.getUserName());
        log("Designation : " + loginForm.getDesignation());

        Forward fwd = new Forward("success");
        fwd.addActionOutput("userName", loginForm.getUserName());
        fwd.addActionOutput("designation", loginForm.getDesignation());
        return fwd;
    }

    private static void log(Object o) {

        if (o instanceof Throwable) {
            ((Throwable)o).printStackTrace(System.err);
        } else {
            System.out.println(o + "");
        }
    }

}

package structure is
src
    pageflow
           Controller.java
    bean
             LoginForm.java
web
    pageflow
             Login.jsp
             dispaly.jsp
             index.jsp
      WEB-INF
           ...
    my login.jsp contains
                            <%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri = "/WEB-INF/tld/beehive-netui-tags-html.tld" prefix ="netui"
%>

<netui:html>
        <netui:body>
        <p>
                 Hi Welcome!!!
        </p>
        <p>
          <netui:form action="processLogin">
            <table>
                <tr>
                    <td>username:</td>
                    <td><netui:textBox
dataSource="actionForm.userName"/></td>
                </tr>
                <tr>
                    <td>Designation:</td>
                    <td><netui:textBox
dataSource="actionForm.designation"/></td>
                </tr>
            </table>

            <br/>
            <netui:button value="Submit"/>
        </netui:form>
        </p>
  </netui:body>
</netui:html>

My index.jsp has <netui:anchor action ="login">Login</netui:anchor>

   when i hit http://localhost:8080/<contextname>/pageflow/begin.do?       i
am getting index.jsp
after clicking login link in index.jsp, i am getting "action:processLogin
invalid action".. repeatly  such error i am getting.

what is the error in program ?..what is the error in <netui:form> kindly
help me

with expectation

regards
sam
--
View this message in context: 
http://www.nabble.com/Error-on-apache%27s-beehive-netui%3Aform-tf2793973.html#a7794588
Sent from the Beehive - User mailing list archive at Nabble.com.


Reply via email to