• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP does not lookup JSTL  RSS feed

 
Giovanni Montano
Ranch Hand
Posts: 397
6
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am following a tutorial that should retrieve data from mySQL in local. I am using spring, and Apache 8.

this is my JSP: the line Email:$:{row.email} <br /> return me in the browser Email:$:{row.email}, and not the expected Email: Dave@example.com while instead the other data are correctly "looked up" ( or should i say resolved?) by the DB.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66148
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is usually a sign that your web app is incorrectly configured. See the JspFaq for more information.

Your web.xml must be declared with the modern xsd approach and not a DOCTYPE.
 
Giovanni Montano
Ranch Hand
Posts: 397
6
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:This is usually a sign that your web app is incorrectly configured. See the JspFaq for more information.

Your web.xml must be declared with the modern xsd approach and not a DOCTYPE.


Thank you for your interest. It looks like in my web.xml file is declarared a (namespace?) xsd.


Also, it is a bit strange that from all the columns from the database only one is not retrieved( row.email).This imo does not explain why row.id,row.name, and row.text are correctly processed. This pushes me to think that could be that I did not have to declare the column email with a varchar(60) in mySQL. I tried also to pass a comand: now it is succesfully changed to text the column email but still does not work.
I have also tried to look through the console message, but no errors are present. I have also examined the web.xml comparing to the one original from the tutorial, but they look identical
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66148
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I see the problem.

Take a very careful look at the code near where you are seeing the strange behavior.
 
Giovanni Montano
Ranch Hand
Posts: 397
6
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Oh, I see the problem.

Take a very careful look at the code near where you are seeing the strange behavior.


Also if I am much more vegetarian than you, I have to see that I loved your challenge. Thanks pal! now it works as a charm


and not


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!