• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

On saving data, user get information that is not meant for him to be seen.

 
Greenhorn
Posts: 20
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I write a quiz in german language, all works fine - thanks to the help i received here in forum.

My problem is that at the end of the game, when someone press the "Spiel beenden" Button, the user see on an blank site, the name of the file where the data is saved- VERY bad for me - and some information.
I would like that the user dont see nothing or instead of the filename a message like "Tank you for your participation".

For selftesting, MY QUIZ:
(questions are on german language)

http://www.cslfotoart.de/000/01_dkg.htm


Here an exemple how is looking when pushing the "Spiel beenden" button:


kontrollgruppe bWVfdGVzdDA2Li4uMjIuNDkuMTZfa29udHJvbGxncnVwcGUKIEZyYWdlIDAgd3VyZGUgZmFsc2NoIGJlYW50d29ydGV0CkJlZ2lubjogKFRhZy4uLnN0dW5kZS5taW51dGUuc2VrdW5kZSkwNi4uLjIyLjQ5LjE2CkVuZGU6IChUYWcuLi5zdHVuZGUubWludXRlL

The problem is that the user is not meant to see all this.

The code used for saving the data:



Any suggestions ?

Thanks!
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start by handling the exception properly - an empty catch block for an I/O operation is bad; at least log something so you know there was a problem.

I can't reproduce the problem. After pressing that button there's a popup dialog, and after that the applet just goes completely blank, with no text of any kind being displayed.
 
Lucian Botezatul
Greenhorn
Posts: 20
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for trying and for the suggestion!

- the first pop up request some strings (type anything) to start.

- than it should display the quiz with the first question, and when you press the "Spiel beenden" button, you get a pop up with some statistics and a "thanks & goodbye" message,
plus it comes the blanc page with my problem on the upper left conner.
It´s not a problem with the functionality of the programm, it works well, its only about showing the filename and the Base64 coded data in the conner.

I will write a log file to take a look if there are some errors.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic