• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
manoj r patil
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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: 181
  • Mark post as helpful
  • send pies
  • 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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic