facebook

Generating struts jsp,action,form automagically

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

    jeffhoran
    Member

    I’ve noticed JDeveloper and WLStudio[?] can easily create a full web app from tables or possibly schemas. I started to use Hibernate in ME and that gets me half way there. Is there a way to generate my struts tags in a jsp, action and forms via hbm.cfg or other file? Do you know of another tool that does that? I’m not familiar any code generator apps (velocity?) that I could use.

    #258809 Reply

    Riyad Kalla
    Member

    Jeff,
    Yes you can do something like this in MyEclipse. It would look something like this:

    0) Setup a Web project with Struts capabilities
    1) Reverse engineer your database with MyEclipse
    2) Now open your struts-config.xml file, do a New Action, Form, JSP wizard. When asked for the form bean, specify “existing class” and point it at one of your reverse engineered classes, MyEclipse will pickuip the properties for you.
    3) Finish the wizard, and you should have JSP with a default form that will populate that form bean and submit to that action.

    #258821 Reply

    jeffhoran
    Member

    Sweet!

    #258954 Reply

    peterdnight
    Member

    Yeah – well I am paying my $30 for this – so it better work 😉

    How come RAD costs $2000?

    #258960 Reply

    Riyad Kalla
    Member

    How come RAD costs $2000?

    That’s a very good question.

    #258962 Reply

    peterdnight
    Member

    Well – I am starting to see some answers ( I have been using WSAD/RAD for 5+ years )….

    Does the login demo (on the doc link) represent the full capability set of the Struts integration? For example, a success forward was added, and a Success.jsp was added, but this was not reflected on the (flow?) diagram? Also – can I create new actions, etc. directly on the diagram. eg. Does the diagram support modules?

    Thanks for the quick response!!

    #258964 Reply

    Riyad Kalla
    Member

    I’m not sure I follow, in Figure 6 all forwards pointing to and from pages are added as well as the pages they are associated with. Also yes you can create actions, forms, pages and so on using the diagram (Right click on it). As far as modules, the diagram represents 1 module, so creating cross-module links can be done by it’s not DnD. You can use the File > New > Other > Web-Struts > New Module wizard to create a new module.

    #258965 Reply

    peterdnight
    Member

    cool thanks!! i will give this a drive by;)

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Generating struts jsp,action,form automagically

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