John Turner

Greenhorn
+ Follow
since Dec 19, 2010
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Turner

Hi all,

I am having trouble with a prepared statement in my Java Servlet's data manager where it inserts a member into the database. I believe the syntax is correct, but I always seem to get the error:



Here is my code




Hope you can help me solve this problem.
Hi all,

I am developing an online auction website and I am having difficulty if thinking about how I would allow a member to view auction items they have won.

Currently I have two MySQL tables called items and bids where items contains the details of items and bids contain details of bids for items in the items table.

I have thought about comparing the bidder's highest bid with the end date and whether the reserve price has been met, then forwarding this information to my JSP page to display items that have been won, but I don't think this is possible because a bidder's highest bid may not be the highest bid within the auction.

Any suggestions would be welcome.
11 years ago
Hi all,

I am having a little problem in taking a list of search results that I generate from a JSP page, and when selecting the checkbox I want to view a particular resources result for, displays the wrong information. I can get the first result to be able to display the correct information on a particular resource, but when I want to view the second or third result, I get the first result resource information instead. I am not very good at explaining the situation, so I shall provide an example:

I search for Harry Potter books, this is sent to the server to obtain the search results and generates a page with the results. On the results page I have checkboxes beside each search result. I check the first and click on "view information", this generates a new page from the server, with all the details of the first search result - This part is fine.

However, if I perform my search again, and check the second search result, and generate a new page with the second search result's details, it just gives me the first results detailed information, and not the second result's detailed information - This part is the problem, and the same applies to the other search results.

So my question is why is it displaying the detailed information for the first search result, when I ask for the second search result's detailed information?
Here is my code:







Sorry for the long posting, but hopefully you can help me.
11 years ago
JSP
Sorry, I forgot about that! I was tired when posting last night. Here is LineToChar.java

Hi all,

I am having a little trouble with my buffer that uses Thread synchronization. What is meant to happen is that the InputManager inputs a String into the buffer. The buffer is then passed to LineToChar, where it takes the String from the buffer using the take() method and extracts the string into individual letters. These individual letters should then be passed to the OutputManager through another buffer, where the OutputManager outputs the individual letters onto the screen.

The problem is that it appears to be getting stuck in deadlock after the letter "e". Can you please offer suggestions on why it is doing this and point me in the right direction on how to solve this? My code is below:








Hope you can help me.
Hi all,

I have a little problem regarding my quick results search page created with jsp and jstl. What is wrong is that after I submit my quick search jsp form and the servlet processes the request, the results page is not appearing, only stating that no books match my search criteria. So it is not forwarding to the results page, even though I know there are multiple results i nthe database which should be output to a table. Here is my code:





Again to clarify, I know my database has more than one search term such as different java books, but when I select "All" from my search form, and submit this, instead of forwarding this to the results page, it gives me an error that no resources match my search criteria. However, when I search for a specific title, the book will be displayed in the results table. How can I get my code to actually display all the results that match the search term provided by me?

Thanks if you can help.