Para comenzar, necesitas como minimo 4 jars:

* struts-core-xxx.jar
* xwork-xxx.jar
* ognl-xxx.jar
* freemarker-xxx.jar

Si utilizas maven, hacer este cambio seria mas facil. Sino, Ant tambien te puede ayudar, pero dependiendo como es que mantienes tus dependencias, seria un poco mas complicado. Ten en cuenta que al final si se puede mantener ambos Struts juntos.

Todos estos jars tienen que estar en WEB-INF/lib. Una vez ahi, necesitas anadir un filtro. Struts 2 (a diferencia de Struts 1) utiliza Tecnologia de Filtros (Struts 1 es basado en Servlets). Esto es una ayuda fenomenal pues ayuda mucho al problema de "Thread Safety" (perdon, no se como traducir esto al ingles). Si lees ingles, los siguientes articulos me ayudaron mucho a comenzar a tener ambos Struts en el mismo proyecto:

http://www.infoq.com/articles/converting-struts-2-part1
http://www.infoq.com/articles/migrating-struts-2-part2
http://www.infoq.com/articles/migrating-struts-2-part3

Asi mismo, si tienes preguntas acerca de "Tiles" (si es que lo usas) estos tambien pueden usarse juntos. Tiles en Struts 1 es diferent a Struts 2, asi que esto tambien debes de considerar al hacer el cambio.

Espero esto te ayude. Buena suerte!


Alvaro Ernesto Gomez Cerna wrote:
Me parece bien, ya anteriormente habia escuchado sobre DRW y el otro de JSON,
pero me habia inclinado por Strust para no utilizar muchas librerias de uno y
otro fabricante, pero si me gustaria manejar ambas y asi como dices ir cambiando
despacio de Strust 1 hacia Strust 2, pues veo que trae muchas mas bondades.

Que librerias necestaria incluir para mantener ambas dentro del mismo proyecto.
Asi ir haciendo las nuevas formas en Strust 2
-----Mensaje original-----
De: Alberto A. Flores [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 11 de Febrero de 2008 05:51 p.m.
Para: Struts Users Mailing List
Asunto: Re: Actualizar Strust 1 a Strust 2

Si es AJAX lo unico que necesitas, entonces quiza sea mejor que utilizes algun
paquete "open-source" que te permita esta posibilidad. De esta maneras puedes
hacer que tu aplicacion(es) puedan mejorar progresivamente. Un paquete que he
utilizado mucho anteriormente es AjaxTags. Tambien esta DWR y tambien he usado
Scriptaculous. Estos son buenos paquetes. Migrar una aplicacion de Struts 1.x a
Struts 2.x no es tan sencillo y tomaria tiempo, sin embargo, puedes tener una
aplicacion que utilize los dos a la vez.

Aunque no se como se haria esto en JDeveloper, si se lo basico (configuration en
WEB-INF, jars, etc). Pienso que deberias considerar cautelosamente tus
prioridades antes de lanzarte a este tipo de cambio. Debes de considerar el tiempo que te va a costar, cuanta gente estaria
involucrada, recursos, etc. Personalmente, estoy muy contento con el cambio,
pero puedo entender si es que no se puede. Todo depende de la situacion
especifica.

Si quieres comenzar a tener ambos Struts a la vez, avisame si tienes dudas pues
eso es lo que continue haciendo actualmente.

Alberto

Alvaro Ernesto Gomez Cerna wrote:
Actualmente tengo todos los proyectos sobre Jdeveloper 10.1.3, totalmente Cliente Servidor, el problema es que para actualizar un dato siempre tengo que refrescar todo la pantalla, y me gustaria utilizar el Ajax que viene en la Version 2 de Strust, ya he descargado las librerias de 2.0.11 de Strust, pero no se como integrarlas al Jdeveloper
aun..
Aunque lo que gustaria es de implementar solo el Ajax a la version actual que tengo.

-----Mensaje original-----
De: Alberto A. Flores [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 11 de Febrero de 2008 04:15 p.m.
Para: Struts Users Mailing List; [EMAIL PROTECTED]
Asunto: Re: Actualizar Strust 1 a Strust 2

Todo depende de cuanto tiempo (y presupuesto) tengas disponible. Tambien depende de cuanto has escrito hasta el momento.

On Feb 11, 2008 4:08 PM, Alvaro Ernesto Gomez Cerna < [EMAIL PROTECTED]> wrote:

Buenas tardes Grupo, actualmente me encuentro desarrollando en Strust bajo JSP, en Jdeveloper, me gustaria actualizarlo a la Version Strust 2, pues quiero utilizar Ajax que tiene integrado, alguien me podria ayudar como hacerlo.



-----Mensaje original-----
De: Allen, Daniel [mailto:[EMAIL PROTECTED] Enviado el: Lunes,
11 de Febrero de 2008 02:48 p.m.
Para: Struts Users Mailing List
Asunto: Struts 2 equivalents?

Hey.

I have to convert an application written with Struts and Tiles 1 to 2.
Could anyone tell me what the Struts2 equivalents for some of the old
Struts1 tag libraries are?

I'm looking specifically for
http://struts.apache.org/tags-html and http://struts.apache.org/tags-logic

Unfortunately, Google just brings me a lot of pages from Struts 1 documentation...
~DVA

--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").

This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books.
The
information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Alberto
http://www.linkedin.com/in/aflores


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--

Alberto A. Flores
http://www.linkedin.com/in/aflores


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to