- This topic has 2 replies, 2 voices, and was last updated 19 years, 3 months ago by Ollie.
-
AuthorPosts
-
OllieMemberHello,
I am new to Eclipse and to Struts for that matter. However, I am trying to create a simple Login application with the struts designer.
To start with I create a jsp in the deisgner called userLoginSuccess. Then right-click in the white space and select New Form, Action and jsp. Then in the Struts Form 1.1. Declaration dialog I create a password and username in the properties and another jsp called userLogin.jsp. Then I select forwards and enter one as “success” with the path userLoginSuccess and “failure” with the path userLogin.jsp. The problem is that evrything is doubling up in the designer, i.e I have two of each jsp type. Does anyone know what I’m doing wrong?Thanks
Brian FernandesModeratorOllie,
I replicated your steps as far as I could from your description, and ended up with only one of each jsp node, as expected.
Are you seeing double the number of JSP nodes only (2×2=4) or 2 Action nodes as well?
I noticed that you called your first jsp “userLoginSucess” not “userLoginSuccess.jsp”, perhaps you used both forms and ended up with two nodes instead of a single “userLoginSuccess.jsp”?
Are you sure you are seeing two of exactly the same jsp nodes? What happens when you switch to the Source page and back? Also, close and re-open the editor and see if you notice any changes.
Finally, which versions of Eclipse, MyEclipse and JDK are you using?
Best,
Brian.
OllieMemberHi Brian,
Thanks for that and sorry for the late reply. I had two of each nodes and in the forwards I labelled the userLoginSucces and userLogin with the jsp extension. I actually tried it again from scratch but for some reason the finish button at the forwards section is disabled. I am using the 3.0 Eclipse version. Anyway it is not so bad as I can still just manually edit the struts.config file. I think I can get by just by editing it.
However, I do have another question. I need to create Action classes and Action form classes. I’m a little confused as I was previously using the JBuilder whereby you can just select a class of type “Action” for example. How do you do this in Eclipse?Thanks for the help
Ollie
-
AuthorPosts