facebook

how to configure MyEclipse for our existing Struts project?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #227904 Reply

    hrabinowitz
    Member

    hello,
    I am trying out MyEclipse, which i recently downloaded. We use eclipse 3.0.2, and have a large existing Struts project. The instructions for setting up MyEclipse seem to refer only to new projects.
    Here is how we have our code laid out…

    HOME/
    --build/
    --classes/
    ----com/
    ------etc...
    --lib/
    --source/
    --com/
    ----etc...
    --taglib/
    ----cafe2Taglib/
    --web/
    ----css/
    ----html-jsp/
    ------module1/
    --------file1.jsp
    --------file2.jsp
    ------module2/
    --------file1.jsp, etc.
    ----image/
    ----inc/
    ----js/
    ----WEB-INF/
    ------struts-config.xml
    ------web.xml
    ------cafe2-taglib.tld
    ------weblogic.xml
    ------etc...

    any advice would be much appreciated. i don’t even need to be able to run the weblogic code with the weblogic server–i’d be happy just to be able to get correct error messages and navigate between jsp and java code successfully!
    thanks,
    –Henry

    #227941

    Riyad Kalla
    Member

    1) Make a backup copy of this project (File > Export > To ZIP) just for sanity sake incase we need to try again later.

    NOTE: I’m assuming this is a Java project already

    2) Right click on the project root, go to MyEclispe > Add Web Capabilities
    3) Set Web Context Root to: /web and hit Finish
    4) Right click again on project root, go to MyEclipse > Add Struts Capabilities
    5) Be sure to select Struts 1.1 or 1.2 depending on what you are using.
    6) Type in the same struts servlet name you already have in your web.xml file
    7) Select your URL pattern style (NOTE all these options so far effect your web.xml file which is already filled out obviously, so you can just let this Wizard do what it wants, then remove all it’s changes and revert to your old web.xml file after it’s done)
    8) Enter the base package for your Struts generation to take place (you likely have a custom way of doing this, MyEclipse defaults to doing <base pcakage>.form and <base package>.action for generation.
    9) Enter in your Properties file for all I18N stuff.
    10) You probably want to uncheck the last 2 check boxes cause I imagine you have all the libs and such in the project already.
    11) Hit finish.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: how to configure MyEclipse for our existing Struts project?

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