facebook

Webroot Struts Example

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #225937 Reply

    Chris
    Member

    I followed along doing the example in StrutsTutorial and it did not create a login.jsp or the form floder. I am using eclipse 3.0.1 & MyEclipse 3.8.3.
    This is what I did.
    New Project -> j2ee -> Web Project (named Review)
    Right click proj -> MyEclipse -> Add Strut Cap.
    Change com.company.struts to review.struts (Default app resource changes accordingly) Already set: Web Project /Review and web-root folder /WebRoot
    No Errors
    Open WebRoot/Web-inf/struts-config.xml
    R-Click on action mapping (outline view) -> New Form, Action, JSP
    Dialog:
    Use Case: login
    Name: loginForm
    Formtype: review.struts.form.LoginForm
    Add -> add “name” -> close
    deselect ActionError & reset methods
    Next -> Input source /form/login.jsp (already set) -> Finish
    Click on Design tab to view the flow
    Double-click the box login.jsp and I get the following warning:
    File Review/WebRoot/form/login.jsp does not exist w/in your workspace
    I look and no folder form and no login.jsp exists.
    In my struts-config.xml I show this

    <form-beans >
    <form-bean name=”loginForm” type=”review.struts.form.LoginForm” />

    </form-beans>

    <action-mappings >
    <action
    attribute=”loginForm”
    input=”/form/login.jsp”
    name=”loginForm”
    path=”/login”
    scope=”request”
    type=”review.action.LoginAction” />
    </action-mappings>
    where review took the place of com.yourcompany

    I don’t understand what I did wrong.

    #225952 Reply

    Riyad Kalla
    Member

    Next -> Input source /form/login.jsp (already set) -> Finish

    At this step there is a checkbox that you have to check in order for this page to be created, it is not created by default.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Webroot Struts Example

You must be logged in to post in the forum log in