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.