aspose file tools*
The moose likes Spring and the fly likes Title of the jsp page is appended with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Title of the jsp page is appended with "undefined" when displaying errors" Watch "Title of the jsp page is appended with "undefined" when displaying errors" New topic
Author

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

nidhs singh
Greenhorn

Joined: Jul 23, 2012
Posts: 1
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

Joined: Mar 07, 2010
Posts: 1676
    
    7

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.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Title of the jsp page is appended with "undefined" when displaying errors