You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bogdan Paduraru <bp...@totalsoft.ro> on 2006/01/03 10:37:48 UTC

move from PHP to Struts

Hi,

 

I'm managing a PHP/postgreSQL project. The purpose of the project is to
display some items (i.e : houses etc)

on webpages, along with HTML text. 

The problem is this project became too big and almost impossible to
handle since you can't separate very well presentation from logic.

I convinced management we need to move on to a different technology and
since I worked previously with Java (Java servlets especially), I
recommended we

should look on a Java solution.

I read Apache Struts would be a good solution since people say it
separates logic from presentation quite well.

For us is very important to highly customize user interface and this is
a web interface and maybe you figure out how difficult is to do that in
PHP.

I wrote here to receive input from people that maybe had my problems and
moved to Struts.

Also I noticed Struts has now Action Framework and Shale Framework.
Which one should I use ? Since we should be able to add the

customized HTML templates we receive from our web designer...

Any advice would be helpful, also when you recommend me something would
be nice to point some links with tutorials too because I also want to

train my programmers.

 

Thank you,

Bogdan 


Re: move from PHP to Struts

Posted by Dave Newton <ne...@pingsite.com>.
Bogdan Paduraru wrote:

>I'm managing a PHP/postgreSQL project. The purpose of the project is to
>display some items (i.e : houses etc) on webpages, along with HTML text. 
>
>The problem is this project became too big and almost impossible to
>handle since you can't separate very well presentation from logic.
>  
>
As both a Struts and PHP developer (along with other stuff I like even 
better ;) I have to say that this is not a language or technology issue, 
but a coding issue. You can implement MVC in PHP (along with all the 
unit testing you'd want, etc.) just as easily as with Java/Struts/etc. 
and in some ways will end up with a more agile solution as a freebie.

That said, I'm actually using Spring quite a bit these days until either 
the newer Struts technologies stablize, I decide to use JSF, or I 
completely blow off the Java development model and focus exclusively on 
Lisp or Ruby or whatever.

Dave



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


Re: move from PHP to Struts

Posted by hicham abassi <ha...@gmail.com>.
I think that before choosing a Java Web framework, you should perhaps
analyze the migration.
Many php webapps doesn't implement MVC design pattern.
I think that you should calculate the necessary time to completly
refactor your existing webapp into a new webapp.
Sometime, we think that porting a php webapp to a java web framework
is too easy because the java web framework is on the edge,provides
some good features ;)
If you have money to spend to completly "rewrite" your webapp into an
another technology, so, test them yourself ;)
Many prefer serverside framework like struts, webwork, others prefer
web component framework like JSF,wicket,....
I think the most important question is : How much time your team can
be able to be ready on one of these frameworks.

Personally, i begun webapp coding with php, now i'm coding only on
J2EE platform.
Actually Struts. I hope in the future, i'll work with JSF


best regards ;)


2006/1/3, Bogdan Paduraru <bp...@totalsoft.ro>:
> Hi,
>
>
>
> I'm managing a PHP/postgreSQL project. The purpose of the project is to
> display some items (i.e : houses etc)
>
> on webpages, along with HTML text.
>
> The problem is this project became too big and almost impossible to
> handle since you can't separate very well presentation from logic.
>
> I convinced management we need to move on to a different technology and
> since I worked previously with Java (Java servlets especially), I
> recommended we
>
> should look on a Java solution.
>
> I read Apache Struts would be a good solution since people say it
> separates logic from presentation quite well.
>
> For us is very important to highly customize user interface and this is
> a web interface and maybe you figure out how difficult is to do that in
> PHP.
>
> I wrote here to receive input from people that maybe had my problems and
> moved to Struts.
>
> Also I noticed Struts has now Action Framework and Shale Framework.
> Which one should I use ? Since we should be able to add the
>
> customized HTML templates we receive from our web designer...
>
> Any advice would be helpful, also when you recommend me something would
> be nice to point some links with tutorials too because I also want to
>
> train my programmers.
>
>
>
> Thank you,
>
> Bogdan
>
>
>


--

hicham ABASSI
habassi@gmail.com

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


Re: move from PHP to Struts

Posted by Vikrama Sanjeeva <vi...@gmail.com>.
Hi,

  I want to share my exp. with Bogdan. I m also new to struts. I started it
with sound backround in Java, JSP and Servlets. I read various articles on
struts and it's benefits and then I deployed Lesson 1 from Rick's tutorial.
Initially I face some problems in understanding struts framework and
specially  creating, handling  and managing ActionForms, Actions, Struts
Config and ApplicationResources.properties. But now, I feel comfortable
myself with STRUTS basics (not implemented Dynaforms, validation framework,
tiles etc.)

    What I like in struts is that,

-- it *force the developer to separate presentation, business and
persistence logic.
-- Maintenance becomes very easy. If u wanna add anything in future, then it
will be easier.
-- form validation and automatically populating form fields if validaton
fails is great feature.
-- validating form fields using validate() method and reseting form fields
using reset() method, has saved a lot of developer's time and efforts.
-- displaying error messages using ActionErrors.

These are some benefits which I really like. There are still more benefits
of struts which can be utilized by using Dynaforms,validation framework,
internationalization (118N) etc.

   I suggest Rick's site is great place to start with struts and in books I
like Mastering Jakarta Struts and Struts in Action.

Bye,
Viki.

On 1/3/06, Rick R <st...@reumann.net> wrote:
>
> Bogdan Paduraru wrote:
>
> > Any advice would be helpful, also when you recommend me something would
> > be nice to point some links with tutorials too because I also want to
> >
> > train my programmers.
>
> I'm in the process of finishing up an upgrade to my old struts site
> which people have found helpful with the lessons/examples there. The new
> site will be: http://www.reumann.net/tech/
>
> The older site with more documentation on the actual lessons is here:
> http://www.reumann.net/struts/main.do
>
> I suggest you start with lesson 1 here
> http://www.reumann.net/tech/rr_lesson_1.jsp since it uses JSP2.0 stuff
> which is what you'll want to use if just starting out.
>
> The other example applications are all completed in zip format with a
> war file also on the new site. You can get them all from that same link.
> The problem with the new site is that I haven't written the
> documentation for all them. You can simply bounce back to the older site
> for the docs on lesson's 2 or 3 or simply wait a few days until I have
> the complete:) Feel free to e-mail if you have some questions on getting
> started in regard to the lessons there.
>
> --
> Rick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: move from PHP to Struts

Posted by Rick R <st...@reumann.net>.
Bogdan Paduraru wrote:

> Any advice would be helpful, also when you recommend me something would
> be nice to point some links with tutorials too because I also want to
> 
> train my programmers.

I'm in the process of finishing up an upgrade to my old struts site 
which people have found helpful with the lessons/examples there. The new 
site will be: http://www.reumann.net/tech/

The older site with more documentation on the actual lessons is here:
http://www.reumann.net/struts/main.do

I suggest you start with lesson 1 here
http://www.reumann.net/tech/rr_lesson_1.jsp since it uses JSP2.0 stuff 
which is what you'll want to use if just starting out.

The other example applications are all completed in zip format with a 
war file also on the new site. You can get them all from that same link. 
The problem with the new site is that I haven't written the 
documentation for all them. You can simply bounce back to the older site 
for the docs on lesson's 2 or 3 or simply wait a few days until I have 
the complete:) Feel free to e-mail if you have some questions on getting 
started in regard to the lessons there.

-- 
Rick


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