• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

integrate sturts application with PHP/Ruby

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I wonder if it's possible to integrate a struts application with php/ruby. by that I mean, I would like to have the ability to invoke a php file from a jsp page or activate a php file from an Action.

1. is it possible to do that.
2. if so, where can I read a tutorial/example about that.

thank you!
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure it's possible. Since PHP and Ruby pages are invoked by URIs, all you'd have to do is create a link or a forward that specifies a Ruby or PHP URI. In the case of a forward, it would be mandatory to specify redirect="true" and specify the full URI including the "http://". Just be aware, though that any information you pass would have to be in the form of parameters. You wouldn't be able to pass information via the request or session objects like you're used to in Struts.
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you Merrill, is it a good practice to have this integration or is it consider as not recommended. also, do you know any tutorial that does this mix

thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're creating a web application from scratch, I'd say it's definitely not a good idea to mix technologies like that. It's often necessary, though, to interface with applications that have already been built in another technology. In this case it's sometimes better to make your Struts application interface with the existing application rather than doing a complete rewrite of the other application.

Sorry, I don't know of any tutorials that address this issue.
reply
    Bookmark Topic Watch Topic
  • New Topic