• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request not forwarding...

 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"[Servlet Error]-[/POCust.jsp(1,1) /POCust.jsp(1,1)The markup in the document preceding the root element must be well-formed.]"



I have a jsp that has a template applied to it. The first line of the template is...


That way I can use the JSTL core library because I'm doing a nice little <c:forEach> later on. But this keeps giving me this error every time I forward over to my .jsp page from my servlet. Does anybody know exactly what this means or a common mistake that would cause this? There isn't any code on my .jsp before the root except the template insert tag.


I would think that this is legal...right?
[ November 29, 2007: Message edited by: Bryce Martin ]
 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got rid of that first xml reference and just did a


to include the tablib for the jstl tags.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bryce Martin:
I have a jsp that has a template applied to it.

I don;t know what you mean by this.

To enable the core JSTL library on your page you should be using a taglib directive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic