• Post Reply Bookmark Topic Watch Topic
  • New Topic

button type="button" onclick

 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

Thanks.

 
Devaka Cooray
Marshal
Posts: 5216
512
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has nothing to do with Servlets, and impossible to do unless you use Applets or something . Moving to Applets forum.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can with a signed applet. Recommended reading http://stackoverflow.com/questions/6216024/java-applet-run-native-code-from-browser
At the same time, you might want to evaluate Java Web Start
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!