It's not a secret anymore!
The moose likes Applets and the fly likes button type= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "button type="button" onclick" Watch "button type="button" onclick" New topic

button type="button" onclick

Kee Kee moon
Ranch Hand

Joined: Dec 11, 2009
Posts: 147

Please help.
I have the following code in my Servlet program
PrintWriter.println("<button type="button" onclick="display();">Display</button>");

I like to click the button "Display" to open a java GUI, JFrame or JPanel etc.


Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3783

That has nothing to do with Servlets, and impossible to do unless you use Applets or something . Moving to Applets forum.

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10768

You can with a signed applet. Recommended reading
At the same time, you might want to evaluate Java Web Start

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Don't get me started about those stupid light bulbs.
subject: button type="button" onclick
It's not a secret anymore!