• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JSTL  RSS feed

 
Helga Kolomeets
Greenhorn
Posts: 1
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!
I'm new in JAVA. I try get request from DB and view this in jsp using jstl tags.
I use Tomcat 7. If I not mistake, 7 version working width Servlet 3.0, JSP 2.2.
I'll download jstl-1-2.jar.

It's my taglib link:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

My web-xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

But I have trouble. No errors in my IDE console but when page is open, I don't see nothing. My html table is empty. But db has values, I checked it in MySql command line.

So, help me please, I don't understand why no errors and no values on page?

Please, ask me if for trouble resolution you need any else info.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We'd need to see the controller code that puts the information in the scoped variable to forward to the JSP, and the JSP markup.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S> If you are new to JSP and Java (not JAVA), I recommend read the following articles:
  • The Secret Life of JSPs
  • The Front Man

  •  
    Anindya Roy
    Ranch Hand
    Posts: 76
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Which browser you are using to display the results ?

    If Firefox, use firebug to debug the request and response in the webconsole
    If Chrome, use developer tool to debug the request and response in the webconsole

    You will get request and response in "Net" tab in the debugger
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!