File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

integrate sturts application with PHP/Ruby

 
Peter Primrose
Ranch Hand
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • 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!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic