Skip to main content

All Questions

Tagged with
1 vote
1 answer
520 views

use <c:forEach> to loop through element

i tried looping through an item based on the values available on the database but my index page came out blank. please what could have cuz this.. i have values already inserted in the mysql database. ...
Donatus Bassey's user avatar
0 votes
0 answers
232 views

how to display plain text with html tags as HTML content in jsp pages

I have the text of data with HTML tags I need to display the data in JSP from the database, when I retrieve that data from the database its appear as plain text and not displaying respective CSS I ...
Aadhineni Ganesh's user avatar
1 vote
0 answers
130 views

How to get a value from type org.apache.taglibs.standard.tag.common.sql.ResultImpl into c:out

I am a beginner in jsp and jstl. I try to query a value from my database and display it in my jsp. If i run my application it always displays something like this: org.apache.taglibs.standard.tag....
dwori's user avatar
  • 33
0 votes
0 answers
59 views

Error whiling to fetch data from a MySQL database using jstl in a maven project

the same code is working perfectly fine in another non-maven project errors-img link maven dependencies-img link <sql:setDataSource var="db" driver="com.mysql.cj.jdbc.Driver" ...
Akash Panwar's user avatar
0 votes
1 answer
1k views

How to search database using jstl tags and display in jsp file

I am try to search my database using jstl tags but it is not working. So far what I manage is to make it display a null message. I am very new to this side of java, so please if you have any ...
KnowledgeMan Element's user avatar
0 votes
0 answers
486 views

I have this javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found

Someone help me with this. I am doing a maven project and I have included all the required jar files and database url is correct too. I don't know why I am getting this. enter image description here I ...
kavinn krishnan's user avatar
0 votes
0 answers
134 views

Database value not displayed in jsp & jstl file

I use MYSQL Workbench as the database,I have 3 columns uname,orderdet,ordercost under the orders table.I have to retrieve the values from the database to the jsp webpage for a single user. details....
Sudhakar J's user avatar
0 votes
1 answer
189 views

How to bind list of category from database in jsp form

I have list of category in database and I want to bind those category in combobox: I know this is silly question and asked by so many times but I din't get answer as I want please do not down-vote or ...
Mohammad hussain's user avatar
0 votes
2 answers
2k views

How to display ArrayList items from java in jsp?

I have generated an Arraylist, where I get items from database row by row. I want to display the values in jsp, but I don't know how to bind jsp to java. In java class, listBook is an Arraylist of ...
moro_920's user avatar
0 votes
0 answers
186 views

JSTL JSP Include Servlet Makes JSP Blank

I'm writing a section of code to display a list of organizations that come from a MYSQL database. I'm using JDBC Realm form authentication so I know my database can be queried and runs properly. My ...
newGuy117's user avatar
0 votes
1 answer
184 views

How to make Update Query in JSP on Button Click without Reloading Window?

I have come across a complicated situation. I have made a dynamic app with JSP and I have added a like button for all the posts. I want to increment the like count of the respective post by clicking ...
Punya Kotecha's user avatar
0 votes
0 answers
160 views

sql:update after sql:query (JSTL)

Struggling with what should be simple sql code. First I have a select, this works correctly and produces a single row with a Duration column formatted as hh:mm:ss (i.e 14:28:10) <sql:query var="...
Ralph's user avatar
  • 139
0 votes
1 answer
60 views

jsp jstl sql query tag using declared variables?

Having an issue using "SET @" anything within jstl. Is there a trick to gettikng it to work? <sql:query var="weektots" dataSource="jdbc/x" > SET @tot:=0; SELECT (@tot := @tot + 5) AS rt &...
spas2k's user avatar
  • 519
0 votes
1 answer
49 views

Modifying code in JSTL using ifelse statement

<% try { Class.forName("com.mysql.jdbc.Driver").newInstance();; Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/newschema", "root", "root"); Statement st = con....
EJ Singh's user avatar
0 votes
1 answer
969 views

Cannot fetch data from mySQL database with JSP

I'm trying to retrieve data from my database with JSP and project them to an html page. I was using servlet scriptlet but found out JSTL is a better way so I went for that. The problem is that when ...
Marios Koni's user avatar

15 30 50 per page
1
2 3 4 5