facebook

FormBean -How to update

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

    sheenmicro
    Member

    Hi,
    I’ve used the StrutsDemo as a starting point. I now want to add additional fields/properties to the FormBean eg the demo has just <name>, now the demo is finished and working I want to enchance it accept a password on the login.jsp. Do I have to update all the associated files manually or is there a way to do automatically, eg right-click on the Login ActionMapping and select add-property perhaps ?

    Also, cam I just implement my own classes for the business and database layers automatically or do I have to stick with using the struts stuff no that I’ve started….? I hope this questions make sense 🙂
    Cheers
    Mike

    #206349 Reply

    Riyad Kalla
    Member

    Do I have to update all the associated files manually or is there a way to do automatically, eg right-click on the Login ActionMapping and select add-property perhaps ?

    Good question, right now you have to do it manually. We are looking at supporting an “edit” mode for the wizards in the future, but I don’t know how far we will support it (i.e. it may just edit the struts-config.xml file, not necessarily refactor the Java classes that are defined)

    Also, cam I just implement my own classes for the business and database layers automatically or do I have to stick with using the struts stuff no that I’ve started….? I hope this questions make sense

    I don’t know if this is a MyEclipse question or general Struts question. Either way, you can use whatever you want for any part of your app. For example, in my App I’ve used Hibernate for the persistence layer (all DB stuff). I also write my own Forms and Actions and just create the mappings manually in the struts-config, you aren’t forced to use the wizards if you don’t like them.

    #206384 Reply

    sheenmicro
    Member

    Thanks. I wasn’t sure if it was MyEclipse or general struts question either at the time. I have managed to achieve what I wanted by editing the files and adding my own business/database layers. I am on a very tight schedule for the project and I don’t have the time to ‘learn’ Hibernate at the same time -maybe for the ‘next release 😉
    BTW. I am really impressed with the IDE , well done.

    #206385 Reply

    Riyad Kalla
    Member

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: FormBean -How to update

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