Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue with IE 11 browser on JSP

 
RajendraKumar Katabathini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Every one,

I'm getting displayed string "undefined" on my jsp page unnecessarily. below is the just snippet code piece of my entire JSP page which I feel is the culprit. if some one can help me out to resolve should be very helpful. Just giving the code snippet from where we are using the undefined string and the sample code place its creating the problem I guess.



Fucntion is defined below for every on's reference:

 
Dave Tolls
Ranch Hand
Posts: 2289
25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You really should be using tags, and not code like that in a JSP.
Also, why aren't you at least writing that HTML directly and simply using <%= > (or whatever it is), assuming you don't want to use tags?
That's got to be part of your problem. I would bet there's a quote missing somewhere, or possibly a close tag.

What does the HTML look like that this produces?
 
RajendraKumar Katabathini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
writer.print I mentioned above si rendered from .java and function is defined in .js file. we are using the JSPwriter class to render the entire JSP content that we had written.

Hope this would answer the questions you have posed.

I absolutely agree with your approach
 
RajendraKumar Katabathini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to add one additional info: the page is working absolutely working fine in Older browsers like IE8. but the same code is creating problem in IE 11
 
Dave Tolls
Ranch Hand
Posts: 2289
25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then show the HTML, as that is what is the problem.
If it works in one browser but not another then it is an HTML issue and not (directly) a JSP one.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Modern JSP should have no Java code in it at all, let alone code that generates the HTML. The whole purpose of JSP is not have to code HTML in strings like that. What is the justification?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!