facebook

Forwards in Struts designer

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #234193 Reply

    Ollie
    Member

    Hello,

    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

    #234235 Reply

    Brian Fernandes
    Moderator

    Ollie,

    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.

    #234266 Reply

    Ollie
    Member

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Forwards in Struts designer

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