aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JButton and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JButton and JSP" Watch "JButton and JSP" New topic
Author

JButton and JSP

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
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

Joined: Oct 29, 2001
Posts: 8713
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
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

Joined: Oct 29, 2001
Posts: 8713
    
    6

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

Joined: Jul 08, 2003
Posts: 24168
    
  30

I agree. You're not going to find a free host that lets you have enough bandwidth to host a video conferencing reflector!


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JButton and JSP
 
Similar Threads
Doubt
2 Questions + 1 Meta-Question
HTML Frames and JSP!
Using FrameSet for navigation
Resizing TextArea()