aspose file tools*
The moose likes JSP and the fly likes JSP integration into a PHP based website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP integration into a PHP based website" Watch "JSP integration into a PHP based website" New topic
Author

JSP integration into a PHP based website

Sumit Kumar Yadav
Greenhorn

Joined: Aug 25, 2013
Posts: 23
Sir, i have to develop a module for a website which is developed using PHP. Since i know the JSP/Servlets technology so iam going to develop it using jsp only(also i don't know anything about PHP).
So can you tell me how to integrate a JSP page into a PHP based website.
I am using the Apache Tomcat software.
Please help
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
There is no principal difficulty running both PHP and JSP on the same site, provided you have your Apache set up that way. The PHP pages won't be part of your Java web app, though - that much should be obvious. What exactly do you mean by "integrate a JSP page into a PHP based website"?


Ping & DNS - my free Android networking tools app
Sumit Kumar Yadav
Greenhorn

Joined: Aug 25, 2013
Posts: 23
Sir, it means the module that iam going to develop is built using JSP. so i have to link that jsp page(module) with our php based website.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
If by "link" you mean setting an HTML HREF link from a PHP page to a JSP page or vice versa, then there's no problem doing so, just like links all over the web don't care about the technologies used on either side of them. You will lose any session you may have, though; passing URL parameters, and submitting forms from one technology to the other, is about all you get.

If you meant something else, please be much more elaborate.
Sumit Kumar Yadav
Greenhorn

Joined: Aug 25, 2013
Posts: 23
ok sir, i think i got it.
basically i want to develop a module to send bulk messages using JSP, so can you provide some sources(related documents,examples etc.) where i can read the methodology for implementing this thing.
I do have search the web but did't get the exact material.
please help.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18911
    
    8

Well, let's start with this. The basic function of JSP is to generate HTML to be displayed by a browser. I'm not sure what it means to "send bulk messages", but could you send those bulk messages by simply generating HTML? If the answer is no then you should rethink the idea of using JSP. In that case using a servlet would be more practical.
Sumit Kumar Yadav
Greenhorn

Joined: Aug 25, 2013
Posts: 23
sir, my project module is to develop a system through which we can send bulk sms, I want to send these bulk SMS from my server i.e from my webpage.. Means think it like we have to send 100(same) messages to different clients just like the way sms providers do. What do i need to do this, i want to develop it using servlet and jsp.
Do java provide some pakages related to this..... Means just tell me the first step to start with this project.
Please Help sir
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18911
    
    8

Sumit Yaduvanshi wrote:sir, my project module is to develop a system through which we can send bulk sms, I want to send these bulk SMS from my server i.e from my webpage.. Means think it like we have to send 100(same) messages to different clients just like the way sms providers do. What do i need to do this, i want to develop it using servlet and jsp.
Do java provide some pakages related to this..... Means just tell me the first step to start with this project.


Good. Now we are working our way backwards until we get to the real requirement. It's much better to do that than to guess at a solution and ask how to implement that solution, which might well not be the right one.

So, your question is whether there are any Java tools available for sending SMS. (Is that right? Or do you already know how to do that?) That's a question which has been asked frequently on this forum, so you might want to search the forum for similar posts.

As for wanting to do it with servlets: Is your application such that there's going to be a web page, and when somebody clicks on a button then a set of SMS messages will be sent? If so, then yes, a servlet would be a suitable tool. Of course you'd have to put SMS-sending code inside that servlet. Otherwise, you don't want a servlet. So I don't think we have managed to work our way back through the guessing at solutions to the original requirement quite yet.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
You would sign up with a service provider for that, who would have an API of some sort that you would use. As Paul said, that would happen from within Java code, and not in a JSP. If you search for "bulk SMS" you will find many providers; their respective web sites will have more information about their APIs and everything else you need to know in order to use them.
Sumit Kumar Yadav
Greenhorn

Joined: Aug 25, 2013
Posts: 23
Yes sir, it's just like the way you said, there is web page which gives options to send a set of sms's as we click the send button. Ok sir iam going use servlet for this, can i also use jstl for that purpose because i think that would be more easier to code.
And Sir can i use GSM Dongle with a sim card having free sms plan for this...i have read it somewhere that this would be more easy task than to signing up with bulk sms providers.
I have my own gsm dongle thats why iam asking this sir.
Also tell me java API's and packages for this.
Please help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61662
    
  67

Sumit Yaduvanshi wrote:Yes sir, it's just like the way you said, there is web page which gives options to send a set of sms's as we click the send button. Ok sir iam going use servlet for this, can i also use jstl for that purpose because i think that would be more easier to code.

No. JSPs are for creating HTML pages, not sending SMS messages.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Sumit Yaduvanshi wrote:I have my own gsm dongle thats why iam asking this sir. Also tell me java API's and packages for this.

In that case you need to find out how to interface with that dongle, so its documentation should be the first step. Presumably it's connected either via USB or serial port.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP integration into a PHP based website