This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JButton and JSP

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Not sure if this is the right place to put this

I have a applet. Bellow is its init method
Public void init(){
Frame1 f1 = new Frame1();
}

This is all this applet does. The Frame class is a class that extends JFrame. Now if I sing the applet and distribute the jar file my Frame class can act like a normal java application that is running on the machine thought it was invoked by a applet
Am I right?
If yes good
If no please tell me why

If I have a JButton in my frame after clicking the button I want to call a JSP page.
This JSP page must invoke a servlet.
How can I do this?

Thanks a lot
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sameera Abeysinghe:

Am I right?

Yes.

This JSP page must invoke a servlet.
How can I do this?


Use
java.net.URL to request your servlet or JSP's URL.
 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply

Now I have another problem which is not exactly a java question.


Since my site use JSP where can I find good web space that supports JSP and MYSQL.
My application is video conferencing software (web based).
I stream the video to the server and a servlet saves them in the server as images and others can view the images.
So since there is streaming involved I think it need a lot of band with two.

Is there a place that I could get about 10 to 20 MB free web space with tomcat and mysql to test my site

Thanks
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any free tomcat/mysql hosts. The best you get for free is something like angelfire, a couple of megs for static web content and very little bandwidth. Like so many other things, you get what you pay for. A quick google search shows some reasonable tomcat/mysql plans for around $15 a month.
Personally, I have a DSL line with a static IP. I develop web apps for a living and it's convenient to have somewhere that I can have complete control, from the OS to the web content.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree. You're not going to find a free host that lets you have enough bandwidth to host a video conferencing reflector!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic