This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Servlet and JSP search box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Servlet and JSP search box" Watch "Servlet and JSP search box" New topic

Servlet and JSP search box

Darragh Power

Joined: Jul 24, 2014
Posts: 1
I am trying to display results from my books table in my database. I am using a search box in my index.jsp to input the author name. I want to display all results from my db that match the author's name. The and both worked when all I wanted to do was display all records from my db, but now I've changed it around by adding a search box and trying to search by author.



When I try to run I get this error:

HTTP Status 500 -


type Exception report


description The server encountered an internal error that prevented it from fulfilling this request.



I'd really appreciate help.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

This is the important part of the error:

What does inspecting that tell you?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anindya Roy
Ranch Hand

Joined: May 11, 2014
Posts: 76
You can try with instead of

Also check for . You are not setting value for
I agree. Here's the link:
subject: Servlet and JSP search box
It's not a secret anymore!