File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

button type="button" onclick

 
Kee Kee moon
Ranch Hand
Posts: 147
  • 0
  • 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
ExamLab Creator
Marshal
Pie
Posts: 4116
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • 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
Saloon Keeper
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic