You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aum strut <au...@gmail.com> on 2008/01/25 05:15:34 UTC

Struts2+MyEclipse

Hi All,

Please tell me is it possible to develop Struts2 applications using latest
version of MyEclipse as i came to know that even the latest version of
eclipse support only Struts 1.3.

 Any Guidance in this regard is much appriciated.

Re: Struts2+MyEclipse

Posted by Giovanni Azua <gi...@imc.nl>.
Hi Aum,

I am using MyEclipse 6.0.x to develop a large Struts 2 application and I am
very happy with it. The speed you get in the develop-deploy-test cycle
with its integrated "MyEclipse Tomcat" already pays off  buying it.

Anyway, I found couple of posts from MyEclipse staff that mention
they are considering adding Struts 2 support for the next release 6.1.x

http://www.myeclipseide.com/PNphpBB2-viewtopic-t-19645.html
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-19317.html

HTH,
regards,
Giovanni

aum strut wrote:
> Hi
>
> My question is if i want to use MyEclipse as an ID how can i develop Struts2
> applcations.
>
> is there any way to do this that is the point of my confusion....
> :(
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2+MyEclipse

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
> My question is if i want to use MyEclipse as an ID how can i develop Struts2
> applcations.
>
> is there any way to do this that is the point of my confusion....

The same way as you would do with "raw Eclipse": by hand.

There is no S2 plugin for neither Eclipse nor MyEclipse.

Alvaro.
-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2+MyEclipse

Posted by aum strut <au...@gmail.com>.
Hi

My question is if i want to use MyEclipse as an ID how can i develop Struts2
applcations.

is there any way to do this that is the point of my confusion....
:(


On 1/25/08, Alvaro Sanchez-Mariscal <al...@gmail.com>
wrote:
>
> > even the latest version of
> > eclipse support only Struts 1.3.
>
> Yes, that is.
>
> Alvaro.
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Struts2+MyEclipse

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
> even the latest version of
> eclipse support only Struts 1.3.

Yes, that is.

Alvaro.

-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2+MyEclipse

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
Ted,

Those steps are the same as the ones required for Eclipse.

Simply, there's no specific support for S2, like the support of S1,
Hibernate, Spring...

You will have autocompletion of struts.xml if you have the namespace
declared (like any other XML file) and autocompletion of jsp tags
(like any other tags), but nothing specifically of S2 (like suggestion
of action names in JSP tags based on struts.xml).

Cheers,
Alvaro.

On Jan 25, 2008 1:51 PM, Ted Husted <hu...@apache.org> wrote:
>
> On Jan 24, 2008 11:15 PM, aum strut <au...@gmail.com> wrote:
> > Hi All,
> >
> > Please tell me is it possible to develop Struts2 applications using latest
> > version of MyEclipse as i came to know that even the latest version of
> > eclipse support only Struts 1.3.
> >
> >  Any Guidance in this regard is much appriciated.
>
> Yes, in fact I use MyEclipse in my Struts 2 training course!
>
> MyEclipse 6 is a great platform. Everything you need to develop
> enterprise-grade applications is in a single download, including a web
> container, (Tomcat), DBMS (Derby), Data Access Library (Hibernate),
> Dependency Injection System (Spring), and your choice of web
> application frameworks, such as Struts 1 and Tapestry. Even the Java
> runtime is included in the same download. And, since it's Eclipse, we
> can run it all in place, without tweaking any system registries or
> such. For my course, I can squeeze a complete, runnable system, with
> training materials, onto a 1GB USB drive
>
> MyEclipse may be an all-one-download, but we can still install any
> other Eclipse plugins that we might want to use. And, we can also
> install other frameworks, like Struts 2.
>
> The simplest approach is to create a web application project in the
> usual way. Then, drag and drop the necessary Struts 2 dependencies
> into the WEB-INF folder that MyEclipse will create. The needed JARs
> are
>
>  * struts2-core
>  * xwork2
>  * freemarker
>  * ognl
>  * commons-logging
>
> The commons-logging JAR is optional, but it helps. The versions will
> vary depending on which version of Struts 2 is being used. Just use
> whatever is provided in the Struts 2 lib distribution. (But not
> everything that is in the distribution!)
>
> The one other step is to configure the web.xml to load the Struts
> filter. MyEclipse will create a starter web.xml. Just change it to
> look like this:
>
> ---
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5"
>         xmlns="http://java.sun.com/xml/ns/javaee"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>
>         <filter>
>         <filter-name>
>                 struts2
>         </filter-name>
>         <filter-class>
>                 org.apache.struts2.dispatcher.FilterDispatcher
>         </filter-class>
>         </filter>
>     <filter-mapping>
>         <filter-name>
>                 struts2
>         </filter-name>
>         <url-pattern>
>                 /*
>         </url-pattern>
>     </filter-mapping>
>     <welcome-file-list>
>         <welcome-file>index.html</welcome-file>
>     </welcome-file-list>
> </web-app>
>
> ---
>
> And that's it! Welcome to Struts 2 and MyEclipse 6!
>
> HTH, Ted.
> http://www.StrutsMentor.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2+MyEclipse

Posted by Ted Husted <hu...@apache.org>.
On Jan 24, 2008 11:15 PM, aum strut <au...@gmail.com> wrote:
> Hi All,
>
> Please tell me is it possible to develop Struts2 applications using latest
> version of MyEclipse as i came to know that even the latest version of
> eclipse support only Struts 1.3.
>
>  Any Guidance in this regard is much appriciated.

Yes, in fact I use MyEclipse in my Struts 2 training course!

MyEclipse 6 is a great platform. Everything you need to develop
enterprise-grade applications is in a single download, including a web
container, (Tomcat), DBMS (Derby), Data Access Library (Hibernate),
Dependency Injection System (Spring), and your choice of web
application frameworks, such as Struts 1 and Tapestry. Even the Java
runtime is included in the same download. And, since it's Eclipse, we
can run it all in place, without tweaking any system registries or
such. For my course, I can squeeze a complete, runnable system, with
training materials, onto a 1GB USB drive

MyEclipse may be an all-one-download, but we can still install any
other Eclipse plugins that we might want to use. And, we can also
install other frameworks, like Struts 2.

The simplest approach is to create a web application project in the
usual way. Then, drag and drop the necessary Struts 2 dependencies
into the WEB-INF folder that MyEclipse will create. The needed JARs
are

 * struts2-core
 * xwork2
 * freemarker
 * ognl
 * commons-logging

The commons-logging JAR is optional, but it helps. The versions will
vary depending on which version of Struts 2 is being used. Just use
whatever is provided in the Struts 2 lib distribution. (But not
everything that is in the distribution!)

The one other step is to configure the web.xml to load the Struts
filter. MyEclipse will create a starter web.xml. Just change it to
look like this:

---

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
	http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

  	<filter>
    	<filter-name>
    		struts2
    	</filter-name>
    	<filter-class>
        	org.apache.struts2.dispatcher.FilterDispatcher
    	</filter-class>
 	</filter>
    <filter-mapping>
        <filter-name>
        	struts2
        </filter-name>
        <url-pattern>
        	/*
        </url-pattern>
    </filter-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
</web-app>

---

And that's it! Welcome to Struts 2 and MyEclipse 6!

HTH, Ted.
http://www.StrutsMentor.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org