This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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: 3930

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: 10840

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!]
I agree. Here's the link:
subject: button type="button" onclick
It's not a secret anymore!