This week's book giveaway is in the Design forum.
We're giving away four copies of Mastering Non-Functional Requirements and have Sameer Paradkar on-line!
See this thread for details.
Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

button type="button" onclick  RSS feed

 
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: 5388
609
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!