Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Title of the jsp page is appended with "undefined" when displaying errors

 
nidhs singh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the following Jsp page.

===========
<!doctype html>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="/spring"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>



<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test</title>
----
</html>
==============

We are developing pages using Spring 3. When the page initially loads, the title of the page is displayed correctly. We are using <Spring:bind> to get the user entered value. If there is an error, the error is displayed right, but the title of the page has "undefined:" appended to it( undefined:Test). Has anyone faced this situation before?

 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nidhs,

Welcome to Java Ranch, but please UseCodeTags when posting in the future.

All I see in your code snippet is vanilla HTML is don't see any Spring markup at all. When you post please TellTheDetails, post enough real code so that you can clearly demonstrate the problem. Also if there are any exceptions please give us the whole stack trace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic