• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP, populate HTML form text fields from Database Query

 
Bryan Scarbrough
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to populate the text fields of an HTML form from a MySQL database query in a JSP page and I am recieving the following error each time I load the page:



What could be causing this problem? I am using MVC method and pulling the data from a prepared statement in a Bean after using a name from a HTML form to specialize the query.

Thanks in advance for any and all help!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That usually means that you forgot to close the tag with />
 
Bryan Scarbrough
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did forget the end (/> tag the first time, but it did not make a difference when I went back and added it. I still get the same error.

Here is the form <input> tag:



Is there anything wrong with this?

Should I use


instead of what I did use?

Thanks for your reply.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still get the same error.


The there must be more than one, or your change is not being picked up. This message will not appear if your tags are properly closed.

Btw, what's up with all the extra spacing in the input tag?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. What version of JSP are you using?
 
Bryan Scarbrough
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the spacing!! I have it all on different lines to make it easier to read and when I copied and pasted it into the post it put it all on one line!

I believe I am using JSP 1.2. Not sure though.

How can I check? What difference will it make?
 
Bryan Scarbrough
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am an IDIOT!!!

I have one folder for "working" files and another for "production" I was editing the working file and trying to use the production one!!

WOW I feel stupid!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!