Win a copy of Spring in Action (5th edition) this week in the Spring 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 9550
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: 9550
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
Posts: 24203
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!
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!