• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp POST problem with IE

 
Ed Lance
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working on an App, that works perfect on Netscape Navigator, but when I use the method "POST" in a JSP, and use Internet Explorer as the Browser, then the application stops working. I have checked it carefully and found that IExplorer, just "cuts" part of the information that the servlet target needs to do its job. It simply doesn't return all the characters! How can I solve this problem? I need to use the POST method.
(Have done numerous test and find no consistency...page will occasionally load correctly). Apparently others having same problem (see http://www.jguru.com/faq/view.jsp?EID=326002). Counting on the java experts here to help.
Thanks in advance!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A colleague at work ran into something vaguely like this. It was something like:

In his form, the action attribute had some name-value pairs on it (ie: action="myservlet?name=value&name2=value2")

With netscape, the servlet would receive both the query string and the form fields. With IE, it would only receive the form data (or something like that..)

Is this what is happening? Also, have you tried a different (newer, or if you're using 6.0, older?) version of IE?
 
shilpa kulkarni
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using request.getQueryString() method to get your parameters?
When you use POST, request.getQueryString() does not work, since there is no queryString. You have to use request.getParameter("param1").
Hope this helps.
 
Ed Lance
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for trying, but so far have checked for both of the above issues and still get the problem.
Any other ideas? anyone???
 
Jim Doyle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ed,
I got the same problem and solved it by using
<form action = "TargetingPage" method = "doPost">
Putting "doPost" instead of "post" seems to be the answer.

Jim Doyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!