• 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

<input type="submit" ...> issue on Safari

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the following tag for displaying "Login" button -



On click of this button, the form is supposed to send the value of this button (whose name is "submitButton") to the action. It is working perfectly on Mozilla and IE. But not working on Safari. If I change the method from POST to GET, then on Safari browser also it works but I can not use get for the obvious reasons.

Does anyone know the problem here? I would be very mush grateful if one can give me some pointers.

Thanks In Advance.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Patil,
What does not working mean? Do you get an error message in Safari's console?

Have you tried using a submit button instead of a regular button?
 
manoj r patil
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using submit button already.

Its not working means that button value is not sent to the next page. I am accessing this value using request.getParameter() on jsp but as that parameter itself is not sent, I am getting it null.

When I try GET method, it works fine on Safari as well. I don't know if Safari while posting the request gives special treatment to submit button or how otherwise.

I have one workaround where I am setting one hidden field in case of Safari browser and setting it but then its redundant so I was wondering if there is any better way.

 
What is that? Is that a mongol hoarde? Can we fend them off with 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