This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JButton and JSP  RSS feed

 
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: 9521
12
Linux Mac OS X 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: 9521
12
Linux Mac OS X 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
Sheriff
Posts: 24220
40
Chrome Eclipse IDE Mac OS X
  • 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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!