• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet will Post in IE but not in Netscape

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Applet does a Get then a Post. It works fine in IE but wont Post in Netscape. The value of balance in the session doesnt get changed.
Applet code:

the Servlet code:

I added the line
con.setAllowUserInteraction(false);
to the applet but no difference
I have Netscape 4.7 but the applet is entirely java 1.
If someone else has perhaps a newer version would visit my site and see if it works for them?
http://javaguy.yi.org
the applet is on the 5th page.
after you hit quit, buy something and see if you got paid for the quiz.
Oh by the way, pick easy quiz(trust me)

[This message has been edited by Randall Twede (edited February 13, 2001).]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Randy,
Your cookie logic is kind of impolite. I signed on to your site at home this week-end. Now I am at work and I tried to sign in. Since I don't have the cookie here it didn't recognize me. When I tried to use my user name I get a message that that name is already in use.
Well, I have two offices and a home computer, as well as off-site access on occasion. Just how many user names do you think that I want to remember???
Perhaps you need a password with the user name. The cookie can remember both. Then when I am at a different machine-if I know the password for the username you can make me another cookie for this machine. (Please ).
How else will I ever order those spells???
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cindy,
You have a point so I will explain why it is that way.
In the beginning there was the cookie. Then Randy said let there be a Magic Shop
The cookie servlet was the first servlet I wrote. The whole site was as much learning experience as anything. I didnt think a password was necessary. I thought it was better that return visitors dont have to type anything, just click a button. Login is not a security thing it is so I can keep track of visitors. Even when the wizard asks your name again you dont have to type anything(although that is a little known fact and an inside joke) it gets your name from the cookie if you dont enter a different one.
Even I have two user names. one for IE and one for Netscape.
So the thing is you dont have to remember your login name at all. When you return you just click the login button
[This message has been edited by Randall Twede (edited February 13, 2001).]
 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well what happens if the user deletes the cookie? Do they lose their account permanatly? I clean out my cookies once every 2 weeks so if thats the case you might want to change that.
------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brett,
Now that is a problem. If someone deletes their cookies they have to choose a new name next time. Or if they ask I can delete the name from the user list so they can get it again(this option is only available to people I know). I might worry about that after I figure out why the applet only works in IE. I dont really like it that visitors have to accept cookies in the first place. If it was a real store I sure wouldnt want to turn away customers because my software doesnt like their browser settings.

[This message has been edited by Randall Twede (edited February 13, 2001).]
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Randall,
I tried the Applet using NN 4.73 and the count for the gold pieces turned up ok. Time to upgrade your browser
Jane
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jane,
That is good news! I have Netscape 4.7 for some reason it doesnt work for me. Maybe I should remove the disclaimer then.
Or change the wording at least.
[This message has been edited by Randall Twede (edited February 13, 2001).]
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jane,
Did you tell the wizard your name was Moe? There is no record of a sale to Jane in the database. The applet will say the right balance, but did you actually put something in your shopping cart? The problem was that the balance was not getting changed in the session.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this. I've found than Netscape doesn't wait for the OutputStream to send data before closing it. So you should force it to wait.
Applet code:

Servlet code:

Hope this helps

[This message has been edited by Victor Boveda (edited May 31, 2001).]
 
You don't like waffles? Well, do you like this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic