Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

JButton and JSP

 
Ranch Hand
Posts: 104
  • 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
 
Bartender
Posts: 9612
16
Mac OS X Linux Windows
  • 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
  • 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: 9612
16
Mac OS X Linux Windows
  • 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.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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 once met a man from Nantucket. He had a tiny ad
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic